Skip to content

Commit 9351ed7

Browse files
committed
Patch publishToMaven
1 parent cb9be8f commit 9351ed7

File tree

2 files changed

+40
-13
lines changed

2 files changed

+40
-13
lines changed

gradle/publish-android.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ android {
77
publishing {
88
singleVariant("release") {
99
withSourcesJar()
10-
withJavadocJar()
10+
// withJavadocJar()
1111
}
1212
}
1313
}

play-services-core-proto/build.gradle

Lines changed: 39 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,44 @@
44
*/
55

66
apply plugin: 'com.squareup.wire'
7-
apply plugin: 'kotlin'
7+
apply plugin: 'com.android.library'
8+
apply plugin: 'kotlin-android'
9+
apply plugin: 'maven-publish'
10+
apply plugin: 'signing'
11+
android {
12+
namespace "org.microg.gms.core.proto"
813

14+
compileSdkVersion androidCompileSdk
15+
buildToolsVersion "$androidBuildVersionTools"
16+
17+
defaultConfig {
18+
versionName version
19+
minSdkVersion androidMinSdk
20+
targetSdkVersion androidTargetSdk
21+
}
22+
23+
buildFeatures {
24+
dataBinding = true
25+
buildConfig = true
26+
}
27+
28+
sourceSets {
29+
main.java.srcDirs += 'src/main/kotlin'
30+
}
31+
32+
compileOptions {
33+
sourceCompatibility = 1.8
34+
targetCompatibility = 1.8
35+
}
36+
37+
kotlinOptions {
38+
jvmTarget = 1.8
39+
}
40+
41+
lintOptions {
42+
disable 'MissingTranslation'
43+
}
44+
}
945
dependencies {
1046
implementation "com.squareup.wire:wire-runtime:$wireVersion"
1147
api "com.squareup.wire:wire-grpc-client:$wireVersion"
@@ -21,15 +57,6 @@ sourceSets {
2157
main.java.srcDirs += "$buildDir/generated/source/wire"
2258
}
2359

24-
compileJava {
25-
sourceCompatibility = 1.8
26-
targetCompatibility = 1.8
27-
}
28-
29-
compileKotlin {
30-
kotlinOptions.jvmTarget = 1.8
31-
}
60+
apply from: '../gradle/publish-android.gradle'
3261

33-
compileTestKotlin {
34-
kotlinOptions.jvmTarget = 1.8
35-
}
62+
description = 'microG service implementation for play-services-core-proto'

0 commit comments

Comments
 (0)