diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..aabd191 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,12 @@ +name: Java CI with Gradle + +on: + push: + branches: [ "main" ] + +jobs: + build: + uses: harmonysoft-tech/ci/.github/workflows/gradle-plugin.yml@main + secrets: inherit + permissions: + contents: write \ No newline at end of file diff --git a/build.gradle.kts b/build.gradle.kts index f53f4ab..6af1210 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,7 +1,8 @@ plugins { - kotlin("jvm") version "1.9.10" + `java-gradle-plugin` + kotlin("jvm") version "1.9.23" id("com.gradle.plugin-publish") version "1.2.1" - id("tech.harmonysoft.oss.gradle.release.paperwork") version "1.7.0" + id("tech.harmonysoft.oss.gradle.release.paperwork") version "1.10.0" } group = "tech.harmonysoft" @@ -30,10 +31,8 @@ repositories { } dependencies { - api(gradleApi()) - testImplementation(gradleTestKit()) - testImplementation("org.junit.jupiter:junit-jupiter:5.10.0") - testImplementation("org.assertj:assertj-core:3.24.2") + testImplementation("org.junit.jupiter:junit-jupiter:5.10.2") + testImplementation("org.assertj:assertj-core:3.25.3") testImplementation("tech.harmonysoft:harmonysoft-common-test:1.92.0") } diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index e411586..48c0a02 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,5 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists