Skip to content

Commit a6d916f

Browse files
committed
update build configuration for new maven setup
1 parent 3507ceb commit a6d916f

File tree

4 files changed

+17
-10
lines changed

4 files changed

+17
-10
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ gen/
1515
# Local configuration file (sdk path, etc)
1616
local.properties
1717

18+
# release configuration
19+
releaseConfig.properties
20+
1821
# Eclipse project files
1922
.classpath
2023
.project

jobqueue/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
33
package="com.path.android.jobqueue"
44
android:versionCode="2"
5-
android:versionName="1.2-SNAPSHOT">
5+
android:versionName="1.3-SNAPSHOT">
66
<application android:label="">
77
</application>
88
</manifest>

jobqueue/build.gradle

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
import java.util.regex.Pattern
2+
3+
Properties releaseConfig = new Properties()
4+
releaseConfig.load(new FileInputStream("releaseConfig.properties"))
5+
ext.releaseConfig = releaseConfig
26
task wrapper(type: Wrapper) {
37
gradleVersion = '1.10'
48
}
@@ -88,27 +92,27 @@ afterEvaluate { project ->
8892
beforeDeployment {
8993
MavenDeployment deployment -> signing.signPom(deployment)
9094
}
91-
println "sonatype username: ${sonatypeUsername}"
95+
println "ossr username: ${releaseConfig.ossrhUsername}"
9296

9397
pom.artifactId = 'android-priority-jobqueue'
9498

9599
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots") {
96-
authentication(userName: sonatypeUsername, password: sonotypePassword)
100+
authentication(userName: releaseConfig.ossrhUsername, password: releaseConfig.ossrhPassword)
97101
}
98102

99103
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2") {
100-
authentication(userName: sonatypeUsername, password: sonotypePassword)
104+
authentication(userName: releaseConfig.ossrhUsername, password: releaseConfig.ossrhPassword)
101105
}
102106

103107
pom.project {
104108
modelVersion '4.0.0'
105-
groupId 'com.path'
109+
groupId 'com.birbit'
106110
artifactId 'android-priority-jobqueue'
107111
packaging 'jar'
108112
name 'Android Priority Job Queue'
109113
version manifestVersionName
110114
description 'a Job Queue specifically written for Android to easily schedule jobs (tasks) that run in the background, improving UX and application stability.'
111-
url 'https://github.com/path/android-priority-jobqueue'
115+
url 'https://github.com/yigit/android-priority-jobqueue'
112116

113117
parent {
114118
groupId 'org.sonatype.oss'
@@ -117,9 +121,9 @@ afterEvaluate { project ->
117121
}
118122

119123
scm {
120-
connection 'scm:git:git@github.com:path/android-priority-jobqueue.git'
121-
developerConnection 'scm:git:git@github.com:path/android-priority-jobqueue.git'
122-
url 'git@github.com:path/android-priority-jobqueue.git'
124+
connection 'scm:git:git@github.com:yigit/android-priority-jobqueue.git'
125+
developerConnection 'scm:git:git@github.com:yigit/android-priority-jobqueue.git'
126+
url 'git@github.com:yigit/android-priority-jobqueue.git'
123127
}
124128

125129
licenses {

jobqueue/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
sonatypeUsername=path
1+
sonatypeUsername=yigit
22
sonotypePassword=xxxx

0 commit comments

Comments
 (0)