-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
135 lines (124 loc) · 4.17 KB
/
build.gradle
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
buildscript {
repositories {
google()
mavenCentral()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath 'com.android.tools.build:gradle:4.2.2'
// Use a compatible version for your Android setup
classpath 'gradle.plugin.com.github.johnrengelman:shadow:7.1.0'
// Update to a compatible version
}
}
plugins {
// id 'com.android.library'
id 'maven-publish'
id 'com.github.johnrengelman.shadow' version '7.1.0' apply false
}
apply plugin: 'com.android.library'
apply plugin: 'maven-publish'
apply plugin: 'com.github.johnrengelman.shadow'
android {
compileSdkVersion 30
defaultConfig {
minSdkVersion 24
targetSdkVersion 28
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
packagingOptions {
pickFirst '**/*.so'
jniLibs.useLegacyPackaging = true
}
sourceSets {
main {
jniLibs.srcDirs = ['src/main/jniLibs']
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
namespace 'org.frcforftc.wittydashboard'
}
sourceSets {
main {
java {
srcDirs = ['src/main/java']
}
resources {
srcDirs = ['src/main/resources']
}
}
}
repositories {
google()
mavenCentral()
maven { url = 'https://maven.brott.dev/' }
maven { url "https://repo.dairy.foundation/releases" }
maven { url "https://jitpack.io" }
maven { url 'https://repo.maven.apache.org/maven2' }
maven { url 'https://repo.eclipse.org/content/groups/releases/' }
maven { url uri("https://frcmaven.wpi.edu/release") }
}
dependencies {
implementation('com.github.FRC-For-FTC-Tools:nt-self-impl:0.0.2') {
exclude group: 'org.java-websocket', module: 'Java-WebSocket'
}
implementation 'com.fasterxml.jackson.core:jackson-core:2.13.0'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.13.0'
implementation 'com.fasterxml.jackson.core:jackson-annotations:2.13.0'
// FTC dependencies
implementation 'org.firstinspires.ftc:Inspection:9.2.0'
implementation 'org.firstinspires.ftc:Blocks:9.2.0'
implementation 'org.firstinspires.ftc:Tfod:9.2.0'
implementation 'org.firstinspires.ftc:RobotCore:9.2.0'
implementation 'org.firstinspires.ftc:RobotServer:9.2.0'
implementation 'org.firstinspires.ftc:OnBotJava:9.2.0'
implementation 'org.firstinspires.ftc:Hardware:9.2.0'
implementation 'org.firstinspires.ftc:FtcCommon:9.2.0'
implementation 'org.firstinspires.ftc:Vision:9.2.0'
implementation 'org.firstinspires.ftc:gameAssets-CenterStage:1.0.0'
implementation 'org.tensorflow:tensorflow-lite-task-vision:0.4.3'
runtimeOnly 'org.tensorflow:tensorflow-lite:2.12.0'
implementation 'androidx.appcompat:appcompat:1.2.0'
// Frozen Milk utils
implementation "dev.frozenmilk:Sinister:1.0.0"
implementation "dev.frozenmilk.dairy:Util:1.0.0"
implementation "dev.frozenmilk.dairy:Core:1.0.0"
// FTCLib
implementation 'org.ftclib.ftclib:core:2.1.1'
implementation 'org.ftclib.ftclib:vision:2.1.0'
// RR imports
implementation "com.acmerobotics.roadrunner:ftc:0.1.12"
implementation "com.acmerobotics.roadrunner:core:1.0.0"
implementation "com.acmerobotics.roadrunner:actions:1.0.0"
}
afterEvaluate {
publishing {
publications {
android.libraryVariants.all { variant ->
"${variant.name}Publication"(MavenPublication) {
groupId = "org.frcforftc"
artifactId = "witty-dashboard"
version = "0.0.1"
from components.findByName("${variant.name}")
}
}
release(MavenPublication) {
groupId = "org.frcforftc"
artifactId = "wittyDashboard"
version = "v0.0.0"
from components.findByName('release')
}
}
repositories {
mavenLocal()
}
}
}