File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6161 uses : softprops/action-gh-release@v2.1.0
6262 with :
6363 name : ${{ steps.get_version.outputs.version }}
64+ tag_name : ${{ steps.get_version.outputs.version }}
65+ target_commitish : ${{ github.sha }
6466 prerelease : ${{ steps.get_version.outputs.commit_count != '0' }}
6567 files : |
6668 transact/build/libs/*.jar
Original file line number Diff line number Diff line change 1+ import com.vanniktech.maven.publish.DeploymentValidation
2+
13plugins {
24 id(" java" )
35 id(" java-library" )
4- id(" com.vanniktech.maven.publish" ) version " 0.35 .0"
6+ id(" com.vanniktech.maven.publish" ) version " 0.36 .0"
57}
68
79tasks.withType<JavaCompile > {
@@ -48,9 +50,13 @@ dependencies {
4850 testImplementation(" org.apache.maven:maven-artifact:3.9.12" )
4951}
5052
53+ val projectVersion = project.version.toString()
54+
5155tasks.processResources {
56+ inputs.property(" version" , projectVersion)
57+
5258 filesMatching(" **/app.properties" ) {
53- expand(mapOf (" projectVersion" to project.version ))
59+ expand(mapOf (" projectVersion" to projectVersion ))
5460 }
5561}
5662
@@ -75,7 +81,7 @@ tasks.test {
7581val publishingToMavenCentral = gradle.startParameter.taskNames.any { it.contains(" publishToMavenCentral" ) }
7682
7783mavenPublishing {
78- publishToMavenCentral(automaticRelease = true )
84+ publishToMavenCentral(automaticRelease = true , validateDeployment = DeploymentValidation . NONE )
7985 if (publishingToMavenCentral) {
8086 signAllPublications()
8187 }
You can’t perform that action at this time.
0 commit comments