Skip to content

Commit f34de45

Browse files
Fix gradle for publishing
1 parent a13a86a commit f34de45

1 file changed

Lines changed: 10 additions & 9 deletions

File tree

wordpressclient/build.gradle

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,12 @@ android {
77
defaultConfig {
88
minSdkVersion 19
99
targetSdkVersion 29
10-
versionCode 1
11-
versionName "1.0.1"
1210
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1311
consumerProguardFiles 'consumer-rules.pro'
1412
}
1513
buildTypes {
1614
release {
17-
minifyEnabled false
15+
minifyEnabled true
1816
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
1917
}
2018
}
@@ -47,8 +45,8 @@ publishing {
4745
name = "WordPressClient"
4846
url = uri("https://maven.pkg.github.com/DualBit/AndroidWordPressClient")
4947
credentials {
50-
username = project.findProperty("gpr.user") ?: System.getenv("USERNAME")
51-
password = project.findProperty("gpr.key") ?: System.getenv("TOKEN")
48+
username = System.getenv("USERNAME")
49+
password = System.getenv("TOKEN")
5250
}
5351
}
5452
}
@@ -57,12 +55,15 @@ publishing {
5755
artifact("$buildDir/outputs/aar/wordpressclient-release.aar") {
5856
builtBy tasks.getByName("assemble")
5957
}
60-
groupId 'io.dualbit'
58+
groupId 'io.dualbit.wordpressclient'
6159
artifactId 'wordpressclient'
62-
version this.version
60+
version '1.0.1'
6361
pom.withXml {
64-
url.set("https://github.com/DualBit/AndroidWordPressClient.git")
65-
def dependenciesNode = asNode().appendNode('dependencies')
62+
def root = asNode()
63+
root.appendNode('name', 'Android WordPress Client')
64+
root.appendNode('description', 'Android WordPress JSON API Client')
65+
root.appendNode('url', 'https://github.com/DualBit/AndroidWordPressClient')
66+
def dependenciesNode = root.appendNode('dependencies')
6667
// Iterate over the implementation dependencies (we don't want the test ones), adding a <dependency> node for each
6768
configurations.implementation.allDependencies.each {
6869
// Ensure dependencies such as fileTree are not included in the pom.

0 commit comments

Comments
 (0)