Skip to content

Commit 607a6d4

Browse files
committed
Move from jCenter/binTray to JitPack
1 parent ed22c74 commit 607a6d4

File tree

6 files changed

+16
-78
lines changed

6 files changed

+16
-78
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ buildscript {
66
dependencies {
77
classpath 'com.android.tools.build:gradle:3.2.1'
88
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
9-
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
109
}
1110
}
1211

1312
allprojects {
1413
repositories {
1514
google()
15+
maven { url 'https://jitpack.io' }
1616
jcenter()
1717
mavenLocal()
1818
}

jitpack.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
install:
2+
- ./gradlew clean :librootjava:install :librootjavadaemon:install

librootjava/build.gradle

Lines changed: 1 addition & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
apply plugin: 'com.android.library'
22
apply plugin: 'com.github.dcendents.android-maven'
3-
apply plugin: 'com.jfrog.bintray'
43

54
android {
65
compileSdkVersion 26
@@ -51,7 +50,7 @@ ext {
5150
gitUrl = 'https://github.com/Chainfire/librootjava.git'
5251
issueTrackerUrl = 'https://github.com/Chainfire/librootjava/issues'
5352

54-
libraryVersion = '1.3.1'
53+
libraryVersion = '1.3.2'
5554

5655
developerId = 'Chainfire'
5756
developerName = 'Jorrit Jongma'
@@ -81,35 +80,6 @@ task installMavenLocal(type: Upload) {
8180
version = libraryVersion
8281
group = publishedGroupId
8382

84-
bintray {
85-
Properties properties = new Properties()
86-
if (project.rootProject.file('local.properties').exists()) {
87-
properties.load(project.rootProject.file('local.properties').newDataInputStream())
88-
}
89-
user = properties.getProperty('bintray.user')
90-
key = properties.getProperty('bintray.apikey')
91-
92-
configurations = ['archives']
93-
dryRun = false
94-
publish = true
95-
pkg {
96-
repo = bintrayRepo
97-
name = libraryName
98-
desc = libraryDescription
99-
websiteUrl = siteUrl
100-
issueTrackerUrl = issueTrackerUrl // doesn't actually work?
101-
vcsUrl = gitUrl
102-
//githubRepo = gitUrl // some more bintray weirdness here, breaks upload
103-
//githubReleaseNotesFile = 'README.md'
104-
licenses = allLicenses
105-
publicDownloadNumbers = true
106-
version {
107-
name = libraryVersion
108-
released = new Date()
109-
}
110-
}
111-
}
112-
11383
install {
11484
repositories.mavenInstaller {
11585
pom.project {
@@ -140,5 +110,3 @@ install {
140110
}
141111
}
142112
}
143-
144-
bintrayUpload.dependsOn install

librootjava_example/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,16 @@ dependencies {
2828
implementation 'com.android.support:appcompat-v7:26.1.0'
2929
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
3030

31-
implementation 'eu.chainfire:libsuperuser:1.0.0.+'
31+
implementation 'eu.chainfire:libsuperuser:1.1.1'
3232

3333
// --- librootjava dependency ---
3434

3535
/* Use module sources directly */
3636
//implementation project(':librootjava')
3737

3838
/* Use local Maven repository version, installed by installMavenLocal Gradle task */
39-
//implementation('eu.chainfire:librootjava:1.3.1-SNAPSHOT') { changing = true }
39+
//implementation('eu.chainfire:librootjava:1.3.2-SNAPSHOT') { changing = true }
4040

41-
/* Use bintray/jcenter version */
42-
implementation 'eu.chainfire:librootjava:1.3.1'
41+
/* Use jitpack version */
42+
implementation 'eu.chainfire:librootjava:1.3.2'
4343
}

librootjavadaemon/build.gradle

Lines changed: 2 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
apply plugin: 'com.android.library'
22
apply plugin: 'com.github.dcendents.android-maven'
3-
apply plugin: 'com.jfrog.bintray'
43

54
android {
65
compileSdkVersion 26
@@ -30,7 +29,7 @@ dependencies {
3029
//implementation('eu.chainfire:librootjava:1.3.1-SNAPSHOT') { changing = true }
3130

3231
/* Use bintray/jcenter version */
33-
implementation 'eu.chainfire:librootjava:1.3.1'
32+
implementation 'eu.chainfire:librootjava:1.3.2'
3433
}
3534

3635
task sourcesJar(type: Jar) {
@@ -64,7 +63,7 @@ ext {
6463
gitUrl = 'https://github.com/Chainfire/librootjava.git'
6564
issueTrackerUrl = 'https://github.com/Chainfire/librootjava/issues'
6665

67-
libraryVersion = '1.3.1'
66+
libraryVersion = '1.3.2'
6867

6968
developerId = 'Chainfire'
7069
developerName = 'Jorrit Jongma'
@@ -94,35 +93,6 @@ task installMavenLocal(type: Upload) {
9493
version = libraryVersion
9594
group = publishedGroupId
9695

97-
bintray {
98-
Properties properties = new Properties()
99-
if (project.rootProject.file('local.properties').exists()) {
100-
properties.load(project.rootProject.file('local.properties').newDataInputStream())
101-
}
102-
user = properties.getProperty('bintray.user')
103-
key = properties.getProperty('bintray.apikey')
104-
105-
configurations = ['archives']
106-
dryRun = false
107-
publish = true
108-
pkg {
109-
repo = bintrayRepo
110-
name = libraryName
111-
desc = libraryDescription
112-
websiteUrl = siteUrl
113-
issueTrackerUrl = issueTrackerUrl // doesn't actually work?
114-
vcsUrl = gitUrl
115-
//githubRepo = gitUrl // some more bintray weirdness here, breaks upload
116-
//githubReleaseNotesFile = 'README.md'
117-
licenses = allLicenses
118-
publicDownloadNumbers = true
119-
version {
120-
name = libraryVersion
121-
released = new Date()
122-
}
123-
}
124-
}
125-
12696
install {
12797
repositories.mavenInstaller {
12898
pom.project {
@@ -153,5 +123,3 @@ install {
153123
}
154124
}
155125
}
156-
157-
bintrayUpload.dependsOn install

librootjavadaemon_example/build.gradle

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ dependencies {
2828
implementation 'com.android.support:appcompat-v7:26.1.0'
2929
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
3030

31-
implementation 'eu.chainfire:libsuperuser:1.0.0.+'
31+
implementation 'eu.chainfire:libsuperuser:1.1.1'
3232

3333
// --- librootjava and librootjavadaemon dependencies ---
3434

@@ -37,10 +37,10 @@ dependencies {
3737
//implementation project(':librootjavadaemon')
3838

3939
/* Use local Maven repository version, installed by installMavenLocal Gradle task */
40-
//implementation('eu.chainfire:librootjava:1.3.1-SNAPSHOT') { changing = true }
41-
//implementation('eu.chainfire:librootjavadaemon:1.3.1-SNAPSHOT') { changing = true }
40+
//implementation('eu.chainfire:librootjava:1.3.2-SNAPSHOT') { changing = true }
41+
//implementation('eu.chainfire:librootjavadaemon:1.3.2-SNAPSHOT') { changing = true }
4242

43-
/* Use bintray/jcenter version */
44-
implementation 'eu.chainfire:librootjava:1.3.1'
45-
implementation 'eu.chainfire:librootjavadaemon:1.3.1'
43+
/* Use jitpack version */
44+
implementation 'eu.chainfire:librootjava:1.3.2'
45+
implementation 'eu.chainfire:librootjavadaemon:1.3.2'
4646
}

0 commit comments

Comments
 (0)