|
1 | 1 | plugins { |
2 | | - id 'com.github.johnrengelman.shadow' version '2.0.4' |
3 | | - id "com.jfrog.bintray" version "1.8.5" |
| 2 | + id 'com.github.johnrengelman.shadow' version '7.1.2' |
4 | 3 | } |
5 | 4 |
|
6 | 5 | subprojects { subproject -> |
7 | 6 | apply plugin: 'java' |
8 | 7 | apply plugin: 'maven-publish' |
9 | | - apply plugin: 'com.jfrog.bintray' |
10 | 8 | apply plugin: 'com.github.johnrengelman.shadow' |
11 | 9 |
|
12 | 10 | group = "com.github.therapi" |
13 | | - version = "0.12.0" |
| 11 | + version = "0.13.0-SNAPSHOT" |
14 | 12 |
|
15 | 13 | repositories { |
16 | | - jcenter() |
| 14 | + mavenCentral() |
17 | 15 | } |
18 | 16 |
|
19 | 17 | dependencies { |
20 | | - compile 'com.eclipsesource.minimal-json:minimal-json:0.9.5' |
21 | | - testCompile 'junit:junit:4.12' |
| 18 | + implementation 'com.eclipsesource.minimal-json:minimal-json:0.9.5' |
| 19 | + testImplementation 'junit:junit:4.13.2' |
22 | 20 | } |
23 | 21 |
|
24 | 22 | sourceCompatibility = 1.7 |
25 | 23 | targetCompatibility = 1.7 |
26 | 24 |
|
27 | 25 | shadowJar { |
28 | | - classifier = null |
| 26 | + archiveClassifier.set('') |
29 | 27 | mergeServiceFiles() |
30 | 28 | relocate 'com.eclipsesource', 'com.github.therapi.runtimejavadoc.repack.com.eclipsesource' |
31 | 29 | } |
@@ -68,59 +66,4 @@ subprojects { subproject -> |
68 | 66 | dependsOn(publishToMavenLocal) |
69 | 67 | } |
70 | 68 |
|
71 | | - bintrayUpload.doFirst { |
72 | | - if (version.contains("SNAPSHOT")) { |
73 | | - throw new RuntimeException("Must not upload snapshots to bintray (current version is ${version}) -- create and tag a release version first!") |
74 | | - } |
75 | | - } |
76 | | - |
77 | | - bintray { |
78 | | - if (project.hasProperty('bintrayUsername')) { |
79 | | - user = project.bintrayUsername |
80 | | - } |
81 | | - |
82 | | - if (project.hasProperty('bintrayApiKey')) { |
83 | | - key = project.bintrayApiKey |
84 | | - } |
85 | | - |
86 | | - publications = ['mavenJava'] // When uploading Maven-based publication files |
87 | | - |
88 | | - dryRun = false //false //Whether to run this as dry-run, without deploying |
89 | | - publish = false //true //If version should be auto published after an upload |
90 | | - |
91 | | - pkg { |
92 | | - repo = 'maven' |
93 | | - // userOrg = 'myorg' //An optional organization name when the repo belongs to one of the user's orgs |
94 | | - name = subproject.name |
95 | | - desc = subproject.description |
96 | | - websiteUrl = "https://github.com/dnault/${project.ext.gitProjectName}" |
97 | | - issueTrackerUrl = "https://github.com/dnault/${project.ext.gitProjectName}/issues" |
98 | | - vcsUrl = "https://github.com/dnault/${project.ext.gitProjectName}.git" |
99 | | - licenses = ['Apache-2.0'] |
100 | | - labels = ['runtime', 'javadoc'] |
101 | | - publicDownloadNumbers = false//true |
102 | | - //attributes= ['a': ['ay1', 'ay2'], 'b': ['bee'], c: 'cee'] //Optional package-level attributes |
103 | | - //Optional version descriptor |
104 | | - version { |
105 | | - name = project.version //'1.3-Final' //Bintray logical version name |
106 | | - //desc = 'optional, version-specific description' |
107 | | - released = new Date() |
108 | | - //'optional, date of the version release' //2 possible values: date in the format of 'yyyy-MM-dd'T'HH:mm:ss.SSSZZ' OR a java.util.Date instance |
109 | | - vcsTag = project.version //'1.3.0' |
110 | | - // attributes = ['gradle-plugin': 'com.use.less:com.use.less.gradle:gradle-useless-plugin'] //Optional version-level attributes |
111 | | - gpg { |
112 | | - // sign = true //Determines whether to GPG sign the files. The default is false |
113 | | - // passphrase = 'passphrase' //Optional. The passphrase for GPG signing' |
114 | | - } |
115 | | - mavenCentralSync { |
116 | | - sync = false |
117 | | - //true //Optional (true by default). Determines whether to sync the version to Maven Central. |
118 | | - user = 'userToken' //OSS user token |
119 | | - password = 'paasword' //OSS user password |
120 | | - close = '0' |
121 | | - //'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 puting 0 as value) and release the version manually. |
122 | | - } |
123 | | - } |
124 | | - } |
125 | | - } |
126 | 69 | } |
0 commit comments