Skip to content

Commit 841c4cc

Browse files
committed
Build updates
* Addressed deprecation wanrnings * Updated location of sonatype credentials * Updated version
1 parent f02689b commit 841c4cc

File tree

1 file changed

+127
-129
lines changed

1 file changed

+127
-129
lines changed

build.gradle

Lines changed: 127 additions & 129 deletions
Original file line numberDiff line numberDiff line change
@@ -1,129 +1,127 @@
1-
2-
//// Apply the java-library plugin to add support for Java Library
3-
4-
plugins {
5-
id 'java-library'
6-
id 'com.jfrog.bintray' version '1.7.3'
7-
id 'maven'
8-
id 'maven-publish'
9-
}
10-
11-
apply plugin: 'java-library'
12-
apply plugin: 'maven'
13-
apply plugin: 'maven-publish'
14-
15-
ext {
16-
// groovyVersion = "2.4.11"
17-
}
18-
19-
allprojects {
20-
group = "com.github.dtmo.jfiglet"
21-
version = "1.0.0"
22-
23-
// In this section you declare where to find the dependencies of your project
24-
repositories {
25-
// Use jcenter for resolving your dependencies.
26-
// You can declare any Maven/Ivy/file repository here.
27-
jcenter()
28-
29-
// mavenCentral()
30-
}
31-
}
32-
33-
dependencies {
34-
testCompile "junit:junit:4.4"
35-
}
36-
37-
bintray {
38-
39-
user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER')
40-
key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('BINTRAY_API_KEY')
41-
42-
publications = ['MyPublication']
43-
44-
dryRun = false //[Default: false] Whether to run this as dry-run, without deploying
45-
publish = true //[Default: false] Whether version should be auto published after an upload
46-
override = false //[Default: false] Whether to override version artifacts already published
47-
48-
pkg {
49-
repo = 'maven'
50-
name = 'com.github.dtmo.jfiglet:jfiglet'
51-
// userOrg = user
52-
licenses = ['BSD 3-Clause']
53-
vcsUrl = 'https://github.com/dtmo/jfiglet'
54-
version {
55-
name = '1.0.0'
56-
desc = 'JFiglet 1.0.0'
57-
released = new Date()
58-
vcsTag = '1.0.0'
59-
githubRepo = 'dtmo/jfiglet' //Optional Github repository
60-
githubReleaseNotesFile = 'README.md' //Optional Github readme file
61-
// attributes = ['gradle-plugin': 'com.use.less:com.use.less.gradle:gradle-useless-plugin']
62-
63-
gpg {
64-
sign = true //Determines whether to GPG sign the files. The default is false
65-
}
66-
//Optional configuration for Maven Central sync of the version
67-
mavenCentralSync {
68-
// sync = true
69-
user = project.property('sonatypeUser')
70-
password = project.property('sonatypePassword')
71-
close = '1' //Optional property. By default the staging repository is closed and artifacts are released to Maven Central. You can optionally turn this behaviour off (by putting 0 as value) and release the version manually.
72-
}
73-
}
74-
}
75-
}
76-
77-
task javadocJar(type: Jar, dependsOn: javadoc) {
78-
classifier = 'javadoc'
79-
from 'build/docs/javadoc'
80-
}
81-
82-
task sourcesJar(type: Jar) {
83-
from sourceSets.main.allSource
84-
classifier = 'sources'
85-
}
86-
87-
// Create the pom configuration:
88-
def pomConfig = {
89-
licenses {
90-
license {
91-
name "The 3-Clause BSD License"
92-
url "https://opensource.org/licenses/BSD-3-Clause"
93-
distribution "repo"
94-
}
95-
}
96-
97-
developers {
98-
developer {
99-
id "dtmorgan"
100-
name "Damian Morgan"
101-
email "dtmorgan@gmail.com"
102-
}
103-
}
104-
105-
scm {
106-
url "https://github.com/dtmo/jfiglet"
107-
}
108-
}
109-
110-
// Create the publication with the pom configuration:
111-
publishing {
112-
publications {
113-
MyPublication(MavenPublication) {
114-
from components.java
115-
artifact sourcesJar
116-
artifact javadocJar
117-
groupId 'com.github.dtmo.jfiglet'
118-
artifactId 'jfiglet'
119-
version '1.0.0'
120-
pom.withXml {
121-
def root = asNode()
122-
root.appendNode('description', 'Java FIGfont rendering API')
123-
root.appendNode('name', 'jfiglet')
124-
root.appendNode('url', 'https://github.com/dtmo/jfiglet')
125-
root.children().last() + pomConfig
126-
}
127-
}
128-
}
129-
}
1+
2+
//// Apply the java-library plugin to add support for Java Library
3+
4+
plugins {
5+
id 'java-library'
6+
id 'com.jfrog.bintray' version '1.8.5'
7+
id 'maven-publish'
8+
}
9+
10+
apply plugin: 'java-library'
11+
apply plugin: 'maven-publish'
12+
13+
ext {
14+
// groovyVersion = "2.4.11"
15+
}
16+
17+
allprojects {
18+
group = "com.github.dtmo.jfiglet"
19+
version = "1.0.1"
20+
21+
// In this section you declare where to find the dependencies of your project
22+
repositories {
23+
// Use jcenter for resolving your dependencies.
24+
// You can declare any Maven/Ivy/file repository here.
25+
jcenter()
26+
27+
// mavenCentral()
28+
}
29+
}
30+
31+
dependencies {
32+
testImplementation "junit:junit:4.4"
33+
}
34+
35+
bintray {
36+
37+
user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER')
38+
key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('BINTRAY_API_KEY')
39+
40+
publications = ['MyPublication']
41+
42+
dryRun = false //[Default: false] Whether to run this as dry-run, without deploying
43+
publish = true //[Default: false] Whether version should be auto published after an upload
44+
override = false //[Default: false] Whether to override version artifacts already published
45+
46+
pkg {
47+
repo = 'maven'
48+
name = 'com.github.dtmo.jfiglet:jfiglet'
49+
// userOrg = user
50+
licenses = ['BSD 3-Clause']
51+
vcsUrl = 'https://github.com/dtmo/jfiglet'
52+
version {
53+
name = '1.0.1'
54+
desc = 'JFiglet 1.0.1'
55+
released = new Date()
56+
vcsTag = '1.0.1'
57+
githubRepo = 'dtmo/jfiglet' //Optional Github repository
58+
githubReleaseNotesFile = 'README.md' //Optional Github readme file
59+
// attributes = ['gradle-plugin': 'com.use.less:com.use.less.gradle:gradle-useless-plugin']
60+
61+
gpg {
62+
sign = true //Determines whether to GPG sign the files. The default is false
63+
}
64+
//Optional configuration for Maven Central sync of the version
65+
mavenCentralSync {
66+
sync = true
67+
user = project.hasProperty('sonatypeUser') ? project.property('sonatypeUser') : System.getenv('SONATYPE_USER')
68+
password = project.hasProperty('sonatypePassword') ? project.property('sonatypePassword') : System.getenv('SONATYPE_PASSWORD')
69+
close = '1' //Optional property. By default the staging repository is closed and artifacts are released to Maven Central. You can optionally turn this behaviour off (by putting 0 as value) and release the version manually.
70+
}
71+
}
72+
}
73+
}
74+
75+
task javadocJar(type: Jar, dependsOn: javadoc) {
76+
classifier = 'javadoc'
77+
from 'build/docs/javadoc'
78+
}
79+
80+
task sourcesJar(type: Jar) {
81+
from sourceSets.main.allSource
82+
classifier = 'sources'
83+
}
84+
85+
// Create the pom configuration:
86+
def pomConfig = {
87+
licenses {
88+
license {
89+
name "The 3-Clause BSD License"
90+
url "https://opensource.org/licenses/BSD-3-Clause"
91+
distribution "repo"
92+
}
93+
}
94+
95+
developers {
96+
developer {
97+
id "dtmorgan"
98+
name "Damian Morgan"
99+
email "dtmorgan@gmail.com"
100+
}
101+
}
102+
103+
scm {
104+
url "https://github.com/dtmo/jfiglet"
105+
}
106+
}
107+
108+
// Create the publication with the pom configuration:
109+
publishing {
110+
publications {
111+
MyPublication(MavenPublication) {
112+
from components.java
113+
artifact sourcesJar
114+
artifact javadocJar
115+
groupId 'com.github.dtmo.jfiglet'
116+
artifactId 'jfiglet'
117+
version '1.0.1'
118+
pom.withXml {
119+
def root = asNode()
120+
root.appendNode('description', 'Java FIGfont rendering API')
121+
root.appendNode('name', 'jfiglet')
122+
root.appendNode('url', 'https://github.com/dtmo/jfiglet')
123+
root.children().last() + pomConfig
124+
}
125+
}
126+
}
127+
}

0 commit comments

Comments
 (0)