This repository has been archived by the owner on Apr 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
69 lines (55 loc) · 1.55 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
plugins {
id "org.jetbrains.kotlin.jvm" version "1.3.41"
id "edu.wpi.first.GradleRIO" version "2020.1.1"
id "com.diffplug.gradle.spotless" version "3.27.0"
id "maven"
id "maven-publish"
}
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
repositories {
mavenCentral()
mavenLocal()
maven { url 'https://jitpack.io' }
maven {
url "http://dl.bintray.com/kyonifer/maven"
}
jcenter()
}
def includeDesktopSupport = true
// Defining my dependencies. In this case, WPILib (+ friends)
dependencies {
implementation wpi.deps.wpilib()
nativeZip wpi.deps.wpilibJni(wpi.platforms.roborio)
nativeDesktopZip wpi.deps.wpilibJni(wpi.platforms.desktop)
implementation wpi.deps.vendor.java()
nativeZip wpi.deps.vendor.jni(wpi.platforms.roborio)
nativeDesktopZip wpi.deps.vendor.jni(wpi.platforms.desktop)
testImplementation 'junit:junit:4.12'
// We need to add the Kotlin stdlib in order to use most Kotlin language features.
compile "org.jetbrains.kotlin:kotlin-stdlib"
}
publishing {
publications {
maven(MavenPublication){
groupId = 'frc.team6502'
artifactId = 'kyberlib'
version = '2020.1.23'
from components.java
}
}
}
wrapper {
gradleVersion = '5.0'
}
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
freeCompilerArgs = ["-XXLanguage:+InlineClasses"]
}
}
spotless {
kotlin {
ktlint().userData(['disabled_rules':'no-wildcard-imports'])
}
}