@@ -2,7 +2,6 @@ buildscript {
2
2
repositories { mavenCentral() }
3
3
dependencies {
4
4
classpath ' com.netflix.nebula:gradle-extra-configurations-plugin:6.0.0'
5
- classpath ' io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.30.0'
6
5
}
7
6
}
8
7
plugins {
@@ -12,12 +11,13 @@ plugins {
12
11
id ' codenarc'
13
12
id ' checkstyle'
14
13
id ' maven-publish'
15
- id ' com.bmuschko.nexus' version ' 2.3.1'
14
+ id ' signing'
15
+ id ' java-library'
16
+ id ' io.github.gradle-nexus.publish-plugin' version ' 1.0.0'
16
17
id ' nebula.optional-base' version ' 6.0.0'
17
18
id ' com.github.kt3k.coveralls' version ' 2.12.0'
18
19
id ' pl.allegro.tech.build.axion-release' version ' 1.13.3'
19
20
}
20
- apply plugin : ' io.codearte.nexus-staging'
21
21
22
22
scmVersion {
23
23
tag { prefix = project. name + ' -' }
@@ -91,53 +91,52 @@ jacocoTestReport {
91
91
}
92
92
}
93
93
94
- nexusStaging {
95
- packageGroup = ' pl.allegro'
96
- numberOfRetries = 15
97
- delayBetweenRetriesInMillis = 5000
94
+ test {
95
+ useJUnitPlatform()
98
96
}
99
97
100
- modifyPom {
101
- project {
102
- name ' Spring Boot Starter Handlebars'
103
- description ' Spring Boot auto-configuration for Handlebars template engine'
104
- url ' https://github.com/allegro/handlebars-spring-boot-starter'
105
- inceptionYear ' 2015'
106
-
107
- scm {
108
- url ' https://github.com/allegro/handlebars-spring-boot-starter'
109
- connection
' scm:[email protected] :allegro/handlebars-spring-boot-starter.git'
110
- developerConnection
' scm:[email protected] :allegro/handlebars-spring-boot-starter.git'
111
- }
98
+ java {
99
+ withSourcesJar()
100
+ withJavadocJar()
101
+ }
112
102
113
- licenses {
114
- license {
115
- name ' The Apache Software License, Version 2.0'
116
- url ' http://www.apache.org/licenses/LICENSE-2.0.txt'
117
- }
118
- }
103
+ publishing {
104
+ publications {
105
+ sonatype(MavenPublication ) {
106
+ from components. java
119
107
120
- developers {
121
- developer {
122
- id ' plesiecki'
123
- name ' Paweł Lesiecki'
108
+ pom {
109
+ name = ' Spring Boot Starter Handlebars'
110
+ description = ' Spring Boot auto-configuration for Handlebars template engine'
111
+ url = ' https://github.com/allegro/handlebars-spring-boot-starter'
112
+ inceptionYear = ' 2015'
113
+ licenses {
114
+ license {
115
+ name = " The Apache License, Version 2.0"
116
+ url = " http://www.apache.org/licenses/LICENSE-2.0.txt"
117
+ }
118
+ }
119
+ developers {
120
+ developer {
121
+ id = " plesiecki"
122
+ name = " Paweł Lesiecki"
123
+ }
124
+ }
125
+ scm {
126
+ connection = " scm:svn:http://subversion.example.com/svn/project/trunk/"
127
+ developerConnection
= " scm:[email protected] :allegro/handlebars-spring-boot-starter.git"
128
+ url = " https://github.com/allegro/handlebars-spring-boot-starter"
129
+ }
124
130
}
125
131
}
126
-
127
- project. optionalDeps. each { dep ->
128
- dependencies. find { it. artifactId == dep. name }. optional = true
129
- }
130
132
}
131
133
}
132
134
133
- test {
134
- useJUnitPlatform()
135
- }
136
-
137
- publishing {
138
- publications {
139
- mavenJava(MavenPublication ) {
140
- from components. java
135
+ nexusPublishing {
136
+ repositories {
137
+ sonatype {
138
+ username = System . getenv(" SONATYPE_USERNAME" )
139
+ password = System . getenv(" SONATYPE_PASSWORD" )
141
140
}
142
141
}
143
142
}
0 commit comments