Skip to content

Commit 91e3dc8

Browse files
committed
Followed Jitpack's Library build script guide for Android
1 parent 0ff369f commit 91e3dc8

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

CommonCode/build.gradle

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
apply plugin: 'com.android.library'
2+
apply plugin: 'com.github.dcendents.android-maven'
23

34
android {
45
compileSdkVersion 27
@@ -36,6 +37,8 @@ android {
3637
}
3738
}
3839

40+
group = 'com.github.HazenRobotics'
41+
3942
dependencies {
4043
//FTC libraries
4144
implementation "com.github.modular-ftc:robotcontroller-repackaged:$ftc_version.0-lite"
@@ -53,14 +56,15 @@ task sourcesJar(type: Jar) {
5356
}
5457

5558
task javadoc(type: Javadoc) {
59+
failOnError false
5660
source = android.sourceSets.main.java.srcDirs
5761
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
62+
classpath += configurations.compile
5863
}
5964

6065
task javadocJar(type: Jar, dependsOn: javadoc) {
6166
classifier = 'javadoc'
6267
from javadoc.destinationDir
63-
options.encoding = 'UTF-8'
6468
}
6569
artifacts {
6670
archives javadocJar

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ buildscript {
99
}
1010
dependencies {
1111
classpath 'com.android.tools.build:gradle:3.1.3'
12+
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
1213

1314

1415
// NOTE: Do not place your application dependencies here; they belong

0 commit comments

Comments
 (0)