Skip to content

Commit ff21ed8

Browse files
Lukas Dylanlukasdylan
authored andcommitted
Update Gradle
1 parent efd3503 commit ff21ed8

File tree

2 files changed

+35
-32
lines changed

2 files changed

+35
-32
lines changed

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ buildscript {
1010
dependencies {
1111
classpath 'com.android.tools.build:gradle:4.0.1'
1212
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
13+
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
1314
// NOTE: Do not place your application dependencies here; they belong
1415
// in the individual module build.gradle files
1516
}

library/build.gradle

Lines changed: 34 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ apply plugin: 'kotlin-android-extensions'
66

77
apply plugin: 'kotlin-kapt'
88

9-
apply plugin: 'maven-publish'
9+
apply plugin: 'com.github.dcendents.android-maven'
10+
11+
group = 'com.github.lukasdylan'
1012

1113
android {
1214
compileSdkVersion 29
@@ -66,34 +68,34 @@ dependencies {
6668
kapt "androidx.room:room-compiler:2.2.5"
6769
testImplementation 'junit:junit:4.13'
6870
}
69-
70-
publishing {
71-
publications {
72-
maven(MavenPublication) {
73-
groupId 'id.lukasdylan.grpc'
74-
artifactId 'protodroid'
75-
version '1.0.0-SNAPSHOT'
76-
artifact "$buildDir/outputs/aar/protodroid-debug.aar" //aar artifact you want to publish
77-
78-
//generate pom nodes for dependencies
79-
pom.withXml {
80-
def dependenciesNode = asNode().appendNode('dependencies')
81-
configurations.compile.allDependencies.each { dependency ->
82-
def dependencyNode = dependenciesNode.appendNode('dependency')
83-
dependencyNode.appendNode('groupId', dependency.group)
84-
dependencyNode.appendNode('artifactId', dependency.name)
85-
dependencyNode.appendNode('version', dependency.version)
86-
}
87-
}
88-
}
89-
}
90-
91-
//publish to filesystem repo
92-
repositories{
93-
maven {
94-
url "$buildDir/repo"
95-
}
96-
}
97-
}
98-
99-
repositories { mavenCentral() }
71+
//
72+
//publishing {
73+
// publications {
74+
// maven(MavenPublication) {
75+
// groupId 'id.lukasdylan.grpc'
76+
// artifactId 'protodroid'
77+
// version '1.0.0-SNAPSHOT'
78+
// artifact "$buildDir/outputs/aar/protodroid-debug.aar" //aar artifact you want to publish
79+
//
80+
// //generate pom nodes for dependencies
81+
// pom.withXml {
82+
// def dependenciesNode = asNode().appendNode('dependencies')
83+
// configurations.compile.allDependencies.each { dependency ->
84+
// def dependencyNode = dependenciesNode.appendNode('dependency')
85+
// dependencyNode.appendNode('groupId', dependency.group)
86+
// dependencyNode.appendNode('artifactId', dependency.name)
87+
// dependencyNode.appendNode('version', dependency.version)
88+
// }
89+
// }
90+
// }
91+
// }
92+
//
93+
// //publish to filesystem repo
94+
// repositories{
95+
// maven {
96+
// url "$buildDir/repo"
97+
// }
98+
// }
99+
//}
100+
//
101+
//repositories { mavenCentral() }

0 commit comments

Comments
 (0)