Skip to content

Commit

Permalink
Merge branch 'frc_2020'
Browse files Browse the repository at this point in the history
  • Loading branch information
jhh committed Jan 12, 2020
2 parents aa7ad25 + 3269b1c commit b67ba9e
Show file tree
Hide file tree
Showing 71 changed files with 452 additions and 603 deletions.
137 changes: 61 additions & 76 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,93 +1,78 @@
buildscript {
ext {
kotlinVersion = '1.3.60'
moshiVersion = '1.8.0'
jettyVersion = '9.4.19.v20190610'
okhttpVersion = '3.12.5'
slf4jVersion = '1.7.28'
logbackVersion = '1.2.3'
kotlinLoggingVersion = '1.7.6'
dokkaVersion = '0.9.18'
junitVersion = '5.+'
jsonAssert = '1.+'
assertJVersion = '3.+'
mockitoVersion = '2.+'
gradleRioVersion = '2019.4.1'
bintrayVersion = '1.+'
spotlessVersion = '3.+'
wpiVersion = '2019.4.1'
}
repositories {
jcenter()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:$bintrayVersion"
classpath "edu.wpi.first:GradleRIO:$gradleRioVersion"
classpath "com.diffplug.spotless:spotless-plugin-gradle:$spotlessVersion"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath "org.jetbrains.dokka:dokka-gradle-plugin:$dokkaVersion"
}
plugins {
id "java"
id "idea"
id "maven-publish"
id "org.jetbrains.kotlin.jvm" version "1.3.61"
id "org.jetbrains.kotlin.kapt" version "1.3.61"
id "edu.wpi.first.GradleRIO" version "2020.1.2"
}

// applies to all sub-projects
configure(subprojects) {
group = 'org.strykeforce.thirdcoast'
version = '19.5.1'
group = 'org.strykeforce'
version = '20.0.1'

apply plugin: 'java-library'
apply plugin: 'idea'
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11

sourceCompatibility = 11
// Set this to true to enable desktop support.
def includeDesktopSupport = false

// Defining my dependencies. In this case, WPILib (+ friends), and vendor libraries.
// Also defines JUnit 4.
dependencies {
implementation wpi.deps.wpilib()
nativeZip wpi.deps.wpilibJni(wpi.platforms.roborio)
nativeDesktopZip wpi.deps.wpilibJni(wpi.platforms.desktop)

repositories {
jcenter()
}

dependencies {
implementation "org.slf4j:slf4j-api:$slf4jVersion"
implementation wpi.deps.vendor.java()
nativeZip wpi.deps.vendor.jni(wpi.platforms.roborio)
nativeDesktopZip wpi.deps.vendor.jni(wpi.platforms.desktop)

implementation "org.jetbrains.kotlin:kotlin-stdlib"
implementation "org.slf4j:slf4j-api:1.7.28"
implementation "org.eclipse.jetty:jetty-server:9.4.19.v20190610"
implementation "com.squareup.okhttp3:okhttp:3.12.5"
implementation "io.github.microutils:kotlin-logging:1.7.6"
implementation "com.squareup.moshi:moshi:1.8.0"
kapt "com.squareup.moshi:moshi-kotlin-codegen:1.8.0"

// Testing
testImplementation "org.junit.jupiter:junit-jupiter-params:$junitVersion"
testImplementation "org.junit.jupiter:junit-jupiter-api:$junitVersion"
testImplementation "org.assertj:assertj-core:$assertJVersion"
testImplementation "org.mockito:mockito-junit-jupiter:$mockitoVersion"
testRuntime "org.junit.jupiter:junit-jupiter-engine:$junitVersion"
testRuntime "ch.qos.logback:logback-classic:$logbackVersion"
}
testImplementation "org.junit.jupiter:junit-jupiter-params:5.+"
testImplementation "org.junit.jupiter:junit-jupiter-api:5.+"
testImplementation "org.assertj:assertj-core:3.+"
testImplementation "org.mockito:mockito-junit-jupiter:2.+"
testImplementation "org.skyscreamer:jsonassert:1.+"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:5.+"
testRuntimeOnly "ch.qos.logback:logback-classic:1.2.+"

idea {
compileOnly 'org.jetbrains:annotations:15.0'
}

java {
withSourcesJar()
}

idea {
module {
downloadJavadoc = true
downloadSources = true
}
}

test {
useJUnitPlatform()
}
}

// applies to all sub-projects except for deadeye
configure(subprojects - project(":deadeye")) {
apply plugin: "edu.wpi.first.GradleRIO"

dependencies {
implementation wpi.deps.wpilib()
implementation wpi.deps.vendor.java()
}
}

// applies to all Kotlin sub-projects
configure(subprojects - project(":swerve")) {
apply plugin: "kotlin"
apply plugin: "kotlin-kapt"
apply plugin: 'org.jetbrains.dokka'
publishing {
publications {
thirdcoastLibrary(MavenPublication) {
from components.java
}
}

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion"
implementation "io.github.microutils:kotlin-logging:$kotlinLoggingVersion"
implementation "com.squareup.moshi:moshi:$moshiVersion"
kapt "com.squareup.moshi:moshi-kotlin-codegen:$moshiVersion"
}
repositories {
maven {
url "s3://maven.strykeforce.org/repo"
credentials(AwsCredentials) {
accessKey "${System.getenv('STRYKEFORCE_AWS_KEY')}"
secretKey "${System.getenv('STRYKEFORCE_AWS_SECRET')}"
}
}
}
}
23 changes: 0 additions & 23 deletions deadeye/build.gradle

This file was deleted.

1 change: 0 additions & 1 deletion deadeye/gradle.properties

This file was deleted.

Empty file removed deadeye/packages.md
Empty file.
27 changes: 0 additions & 27 deletions deadeye/src/main/kotlin/org/strykeforce/deadeye/Camera.kt

This file was deleted.

54 changes: 0 additions & 54 deletions deadeye/src/main/kotlin/org/strykeforce/deadeye/CameraImpl.kt

This file was deleted.

This file was deleted.

67 changes: 0 additions & 67 deletions deadeye/src/main/kotlin/org/strykeforce/deadeye/Deadeye.kt

This file was deleted.

10 changes: 0 additions & 10 deletions deadeye/src/main/kotlin/org/strykeforce/deadeye/TargetData.kt

This file was deleted.

This file was deleted.

4 changes: 2 additions & 2 deletions gradle/publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ task sourcesJar(type: Jar, dependsOn: classes) {

artifacts {
archives sourcesJar
archives javadocJar
// archives javadocJar
}

publishing {
Expand All @@ -18,7 +18,7 @@ publishing {
from components.java

artifact sourcesJar
artifact javadocJar
// artifact javadocJar

groupId project.group
artifactId project.name
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
8 changes: 4 additions & 4 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Thu Nov 21 13:49:38 EST 2019
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip
#Wed Jan 08 19:45:35 EST 2020
distributionUrl=https\://services.gradle.org/distributions/gradle-6.0.1-all.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
distributionPath=permwrapper/dists
zipStorePath=permwrapper/dists
zipStoreBase=GRADLE_USER_HOME
Loading

0 comments on commit b67ba9e

Please sign in to comment.