@@ -70,7 +70,7 @@ dependencies {
7070}
7171
7272group = ' io.github.fvarrui'
73- version = ' 1.6.3-SNAPSHOT '
73+ version = ' 1.6.3'
7474description = ' Hybrid Maven/Gradle plugin to package Java applications as native Windows, Mac OS X or GNU/Linux executables and create installers for them'
7575
7676sourceCompatibility = JavaVersion . VERSION_1_8
@@ -150,6 +150,9 @@ publishToMavenLocal.dependsOn(build)
150150
151151if (project. hasProperty(' release' )) {
152152
153+ apply plugin : ' signing'
154+ apply plugin : ' maven'
155+
153156 task javadocJar(type : Jar ) {
154157 classifier = ' javadoc'
155158 from javadoc
@@ -164,51 +167,46 @@ if (project.hasProperty('release')) {
164167 archives javadocJar, sourcesJar
165168 }
166169
167- allprojects {
168- apply plugin : ' signing'
169- apply plugin : ' maven'
170-
171- // Signature of artifacts
172- signing {
173- sign configurations. archives
174- }
170+ // Signature of artifacts
171+ signing {
172+ sign configurations. archives
173+ }
175174
176- // OSSRH publication
177- uploadArchives {
178- repositories {
179- mavenDeployer {
180- // POM signature
181- beforeDeployment { MavenDeployment deployment -> signing. signPom(deployment) }
182- // Target repository
183- repository(url : " https://oss.sonatype.org/service/local/staging/deploy/maven2/" ) {
184- authentication(userName : ossrhUser, password : ossrhPassword)
185- }
186- pom. project {
187- name project. name
188- description project. description
189- packaging = ' maven-plugin'
175+ // OSSRH publication
176+ uploadArchives {
177+ repositories {
178+ mavenDeployer {
179+ // POM signature
180+ beforeDeployment { MavenDeployment deployment -> signing. signPom(deployment) }
181+ // Target repository
182+ repository(url : " https://oss.sonatype.org/service/local/staging/deploy/maven2/" ) {
183+ authentication(userName : ossrhUser, password : ossrhPassword)
184+ }
185+ pom. project {
186+ name project. name
187+ description project. description
188+ packaging = ' maven-plugin'
189+ url ' https://github.com/fvarrui/JavaPackager'
190+
191+ scm {
192+ connection ' scm:git:git://github.com/fvarrui/JavaPackager.git'
193+ developerConnection ' scm:git:git@github.com:fvarrui/fvarrui.git'
190194 url ' https://github.com/fvarrui/JavaPackager'
195+ }
191196
192- scm {
193- connection ' scm:git:git://github.com/fvarrui/JavaPackager.git'
194- developerConnection ' scm:git:git@github.com:fvarrui/fvarrui.git'
195- url ' https://github.com/fvarrui/JavaPackager'
196- }
197-
198- licenses {
199- license {
200- name ' GPL-v3.0'
201- url ' http://www.gnu.org/licenses/gpl-3.0.txt'
202- distribution ' repo'
203- }
197+ licenses {
198+ license {
199+ name ' GPL-v3.0'
200+ url ' http://www.gnu.org/licenses/gpl-3.0.txt'
201+ distribution ' repo'
204202 }
203+ }
205204
206- developers {
207- developer {
208- id = ' fvarrui'
209- name = ' Francisco Vargas Ruiz'
210- url = ' https://github.com/fvarrui'
211- }
205+ developers {
206+ developer {
207+ id = ' fvarrui'
208+ name = ' Francisco Vargas Ruiz'
209+ url = ' https://github.com/fvarrui'
212210 }
213211 }
214212 }
0 commit comments