-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
98 lines (89 loc) · 2.45 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
buildscript {
ext {
kotlinVersion = '1.4.21'
wpiLibVersion = "2021.1.2"
junit5Version = "5.7.0" // https://junit.org/junit5/
gdxVersion = '1.9.13' // https://github.com/libgdx/libgdx/releases
abstractDashboardVersion = "v1.1.0"
abstractControllerLibVersion = "v2.5.0"
jacksonVersion = "2.12.0"
}
repositories {
mavenLocal()
mavenCentral()
maven { url "https://plugins.gradle.org/m2/" }
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
jcenter()
google()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
}
}
plugins {
id "org.jetbrains.kotlin.jvm" version "$kotlinVersion"
}
allprojects {
version = '1.0'
repositories {
mavenLocal()
mavenCentral()
jcenter()
google()
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
maven { url "https://oss.sonatype.org/content/repositories/releases/" }
// maven { url "http://first.wpi.edu/FRC/roborio/maven/release" }
maven { url "https://frcmaven.wpi.edu/artifactory/release" }
maven { url "https://jitpack.io" }
}
}
subprojects {
apply plugin: "kotlin"
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"
testImplementation "org.junit.jupiter:junit-jupiter-engine:$junit5Version"
testImplementation "org.junit.jupiter:junit-jupiter-api:$junit5Version"
}
test {
useJUnitPlatform()
}
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
task packageSources(type: Jar) {
archiveClassifier.set("sources")
from sourceSets.main.allSource
}
artifacts {
archives packageSources
}
}
project(":api"){
dependencies {
// // https://mvnrepository.com/artifact/org.slf4j/slf4j-api
// api group: 'org.slf4j', name: 'slf4j-api', version: '1.7.28'
}
}
project(":gdx") {
apply plugin: "kotlin"
dependencies {
api project(":api")
}
}
project(":desktop") {
dependencies {
api project(":gdx")
}
}
project(":wpi"){
dependencies {
api project(":api")
}
}
wrapper {
gradleVersion = '6.7.1' // https://gradle.org/releases/
distributionType = Wrapper.DistributionType.ALL
}