chore: build-test

This commit is contained in:
usbharu 2024-08-10 12:18:52 +09:00
parent e9f263bab1
commit ceb206289c
Signed by: usbharu
GPG Key ID: 6556747BF94EEBC8
4 changed files with 41 additions and 5 deletions

View File

@ -2,6 +2,8 @@ name: PullRequest Merge Check
on: on:
pull_request: pull_request:
paths-ignore:
- 'owl/**'
branches: branches:
- "develop" - "develop"
types: types:

View File

@ -82,8 +82,8 @@ dependencies {
implementation(libs.bundles.ktor.client) implementation(libs.bundles.ktor.client)
implementation(libs.bundles.apache.tika) implementation(libs.bundles.apache.tika)
implementation(libs.bundles.openapi) implementation(libs.bundles.openapi)
implementation(libs.bundles.owl.producer) // implementation(libs.bundles.owl.producer)
implementation(libs.bundles.owl.broker) // implementation(libs.bundles.owl.broker)
implementation(libs.bundles.spring.boot.oauth2) implementation(libs.bundles.spring.boot.oauth2)
implementation(libs.bundles.spring.boot.data.mongodb) implementation(libs.bundles.spring.boot.data.mongodb)
implementation("org.springframework.boot:spring-boot-starter-actuator") implementation("org.springframework.boot:spring-boot-starter-actuator")
@ -104,7 +104,7 @@ dependencies {
implementation(libs.flyway.core) implementation(libs.flyway.core)
runtimeOnly(libs.flyway.postgresql) runtimeOnly(libs.flyway.postgresql)
implementation("dev.usbharu:owl-common-serialize-jackson:0.0.1") // implementation("dev.usbharu:owl-common-serialize-jackson:0.0.1")
implementation(libs.javacv) { implementation(libs.javacv) {
exclude(module = "opencv") exclude(module = "opencv")

View File

@ -1,5 +1,6 @@
plugins { plugins {
alias(libs.plugins.kotlin.jvm) alias(libs.plugins.kotlin.jvm)
id("maven-publish")
} }
@ -13,9 +14,19 @@ allprojects {
} }
} }
tasks {
create("publishMavenPublicationToMavenLocal") {
subprojects.forEach { dependsOn("${it.path}:publishMavenPublicationToMavenLocal") }
}
create("publishMavenPublicationToGiteaRepository") {
subprojects.forEach { dependsOn("${it.path}:publishMavenPublicationToGiteaRepository") }
}
}
subprojects { subprojects {
apply { apply {
plugin("org.jetbrains.kotlin.jvm") plugin("org.jetbrains.kotlin.jvm")
plugin("maven-publish")
} }
kotlin { kotlin {
jvmToolchain(21) jvmToolchain(21)
@ -28,10 +39,34 @@ subprojects {
} }
tasks.test { tasks.test {
useJUnitPlatform() useJUnitPlatform()
} }
publishing {
repositories {
maven {
name = "Gitea"
url = uri("https://git.usbharu.dev/api/packages/usbharu/maven")
credentials(HttpHeaderCredentials::class.java) {
name = "Authorization"
value = "token " + (project.findProperty("gpr.gitea") as String? ?: System.getenv("GITEA"))
}
authentication {
create<HttpHeaderAuthentication>("header")
}
}
}
publications {
register<MavenPublication>("maven") {
groupId = "dev.usbharu"
artifactId = project.name
version = project.version.toString()
from(components["kotlin"])
}
}
}
} }

View File

@ -2,6 +2,5 @@ kotlin.code.style=official
org.gradle.daemon=true org.gradle.daemon=true
org.gradle.parallel=true org.gradle.parallel=true
org.gradle.configureondemand=true org.gradle.configureondemand=true
#ksp.useKSP2=true
org.gradle.configuration-cache=true org.gradle.configuration-cache=true
org.gradle.configuration-cache.problems=warn org.gradle.configuration-cache.problems=warn