-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle.kts
101 lines (85 loc) · 2.27 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
import com.android.builder.symbols.exportToCompiledJava
import org.jetbrains.dokka.plugability.configuration
plugins {
id("org.jetbrains.kotlin.android") version "1.9.20"
id("org.jetbrains.kotlin.plugin.serialization") version "1.9.20"
id("com.android.library") version "8.1.2"
`maven-publish`
id("org.jetbrains.dokka") version "1.9.20"
}
tasks.named<org.jetbrains.dokka.gradle.DokkaTask>("dokkaJavadoc") {
outputDirectory.set(file("${buildDir}/dokka"))
dokkaSourceSets {
named("main") {
sourceRoots.from(file("src/main/kotlin"), file("src/main/java"))
reportUndocumented.set(true)
skipDeprecated.set(false)
jdkVersion.set(8) // or adjust based on your requirements
perPackageOption {
matchingRegex.set("com\\.acmerobotics\\.roadrunner\\.ftc.*")
suppress.set(true) // Exclude this package
}
}
}
}
val defaultMinSdkVersion by extra(29)
val defaultMinSdkVersion1 by extra(23)
repositories {
mavenCentral()
google()
maven("https://maven.brott.dev/")
}
android {
namespace = "com.pedropathing.pedropathing"
compileSdk = 32
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = "1.8"
}
publishing {
singleVariant("release")
}
sourceSets {
getByName("main") {
java.srcDirs("src/main/kotlin")
}
}
defaultConfig {
minSdk = 23
}
}
dependencies {
compileOnly("org.firstinspires.ftc:RobotCore:10.1.1")
compileOnly("org.firstinspires.ftc:Hardware:10.1.1")
compileOnly("org.firstinspires.ftc:FtcCommon:10.1.1")
compileOnly("org.firstinspires.ftc:RobotServer:10.1.1")
compileOnly("org.firstinspires.ftc:OnBotJava:10.1.1")
implementation("com.acmerobotics.dashboard:dashboard:0.4.16") {
exclude(group = "org.firstinspires.ftc")
}
implementation("org.apache.commons:commons-math3:3.6.1")
dokkaGfmPlugin("org.jetbrains.dokka:kotlin-as-java-plugin:1.9.20")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.9.20")
}
// CONFIGURE PUBLICATION
publishing {
publications {
register<MavenPublication>("release") {
groupId = "com.pedropathing"
artifactId = "pedro"
version = "1.0.5"
afterEvaluate {
from(components["release"])
}
}
}
repositories {
maven {
name = "publishing"
url = uri("./maven.pedropathing.com")
}
}
}