1
- buildscript {
2
- repositories {
3
- jcenter()
4
- mavenCentral()
5
- }
6
- dependencies {
7
- }
8
- }
9
-
10
1
plugins {
11
- id " com.jfrog.bintray" version " 1.7.3"
2
+ id ' com.jfrog.bintray' version ' 1.7.3'
12
3
id ' com.jfrog.artifactory' version ' 4.5.2'
13
- }
14
-
15
- allprojects {
16
- apply plugin : ' java-library'
17
- apply plugin : ' java'
18
- apply plugin : ' maven'
19
- apply plugin : ' maven-publish'
20
- apply plugin : ' signing'
4
+ id ' java-library'
5
+ id ' java'
6
+ id ' maven'
7
+ id ' maven-publish'
8
+ id ' signing'
21
9
}
22
10
23
11
group = project_group
24
12
archivesBaseName = project_artifact
25
13
version = project. project_version
26
14
15
+ // TASKS
27
16
task sourcesJar (type : Jar , dependsOn : classes) {
28
17
classifier = ' sources'
29
18
from sourceSets. main. allSource
@@ -71,19 +60,19 @@ repositories {
71
60
}
72
61
}
73
62
63
+
74
64
dependencies {
75
65
// compile all jar in libs
76
66
localCompile fileTree(dir : ' libs' , include : ' *.jar' )
77
67
compile ' org.apache.commons:commons-math3:3.6.1'
78
68
compile ' com.google.guava:guava:23.0'
79
69
testCompile ' junit:junit:4.12'
70
+ compile ' log4j:log4j:1.2.17'
80
71
compile ' com.github.haifengl:smile-core:1.5.1'
81
- compile ' com.jfoenix:jfoenix:8.0.3' // Java 8
82
-
72
+ compile ' com.jfoenix:jfoenix:8.0.4' // Java 8
83
73
compile ' org.kordamp.ikonli:ikonli-core:1.7.0'
84
74
compile ' org.kordamp.ikonli:ikonli-javafx:1.7.0'
85
75
compile ' org.kordamp.ikonli:ikonli-material-pack:1.7.0'
86
-
87
76
compile ' eu.hansolo.enzo:Enzo:0.3.6'
88
77
compile ' com.google.code.gson:gson:2.8.4'
89
78
}
@@ -101,7 +90,6 @@ sourceSets {
101
90
}
102
91
103
92
104
-
105
93
// BINTRAY
106
94
bintray {
107
95
user = project. hasProperty(' bintrayUsername' ) ? project. property(' bintrayUsername' ) : System . getenv(' BINTRAY_USER' )
@@ -120,7 +108,7 @@ bintray {
120
108
issueTrackerUrl = " https://github.com/$project . your_github_name /$project . project_name /issues"
121
109
vcsUrl = " https://github.com/$your_github_name /${ project.project_name} .git"
122
110
githubRepo = " $your_github_name /$project . project_name "
123
- githubReleaseNotesFile = ' Releasenotes.md'
111
+ // githubReleaseNotesFile = 'Releasenotes.md'
124
112
version {
125
113
name = project. project_version
126
114
vcsTag = project. project_version
@@ -170,7 +158,6 @@ publishing {
170
158
artifactId project_artifact
171
159
version project. project_version
172
160
173
-
174
161
artifact sourcesJar {
175
162
classifier ' sources'
176
163
}
@@ -183,7 +170,6 @@ publishing {
183
170
classifier ' all'
184
171
}
185
172
186
-
187
173
pom {
188
174
packaging ' jar'
189
175
withXml {
@@ -197,32 +183,34 @@ publishing {
197
183
198
184
builder. licenses {
199
185
builder. license {
200
- builder. name ' The Apache Software License, Version 2.0 '
201
- builder. url ' http://www.apache.org/licenses/LICENSE-2.0.txt '
186
+ builder. name project . project_license
187
+ builder. url project . project_license_url
202
188
builder. distribution ' repo'
203
189
}
204
190
}
191
+
205
192
builder. scm {
206
- builder. url ' scm:svn:http://github.com/Giulianini/Track4J '
207
- builder. connection ' scm:svn:http://github.com/Giulianini/Track4J. git'
208
- builder. developerConnection ' scm:svn:ssh://github.com/Giulianini/Track4J. git'
193
+ builder. url " scm:svn:http://github.com/$p roject . your_github_name / $p roject . project_name "
194
+ builder. connection " scm:svn:http://github.com/$y our_github_name / ${ project.project_name } . git"
195
+ builder. developerConnection " scm:svn:ssh://github.com/$y our_github_name / ${ project.project_name } . git"
209
196
}
197
+
210
198
builder. developers {
211
199
builder. developer {
212
200
builder. name ' Luca Giulianini'
213
201
214
202
}
215
-
216
203
}
217
204
218
205
// maven central publishing optionals
219
206
builder. issueManagement {
220
207
builder. system ' github'
221
- builder. url ' https://github.com/p6spy/p6spy /issues'
208
+ builder. url " https://github.com/$p roject . your_github_name / $p roject . project_name /issues"
222
209
}
210
+
223
211
builder. ciManagement {
224
212
builder. system ' Travis CI'
225
- builder. url ' https://travis-ci.org/p6spy/p6spy '
213
+ builder. url " https://travis-ci.org/$p roject . your_github_name / $p roject . project_name "
226
214
}
227
215
}
228
216
}
@@ -232,15 +220,12 @@ publishing {
232
220
}
233
221
234
222
publishing {
235
-
236
223
if (! version. toString(). endsWith(' -SNAPSHOT' ))
237
224
publish. dependsOn bintrayUpload
238
225
else if (version. toString(). endsWith(' -SNAPSHOT' ))
239
226
publish. dependsOn artifactoryPublish
240
227
}
241
228
242
-
243
-
244
229
signing {
245
230
required { gradle. taskGraph. hasTask(" uploadArchives" ) }
246
231
sign configurations. archives
0 commit comments