Skip to content

Commit

Permalink
ok hopefully less sad?
Browse files Browse the repository at this point in the history
  • Loading branch information
minhnguyenbhs committed Aug 26, 2024
1 parent c599592 commit 0242229
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 38 deletions.
39 changes: 21 additions & 18 deletions geometry/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import java.text.SimpleDateFormat


/*
* This file was generated by the Gradle 'init' task.
*
Expand All @@ -6,15 +9,15 @@
*/

plugins {
// Apply the java-library plugin for API and implementation separation.
id 'java-library'
id "com.diffplug.spotless" version "6.24.0"
// Apply the java-library plugin for API and implementation separation.
id 'java-library'
id "com.diffplug.spotless" version "6.24.0"

}

repositories {
// Use Maven Central for resolving dependencies.
mavenCentral()
// Use Maven Central for resolving dependencies.
mavenCentral()
}

spotless {
Expand Down Expand Up @@ -45,28 +48,28 @@ compileJava.dependsOn 'spotlessApply'


dependencies {
// Use JUnit Jupiter for testing.
testImplementation libs.junit.jupiter
// Use JUnit Jupiter for testing.
testImplementation libs.junit.jupiter

testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'

// This dependency is exported to consumers, that is to say found on their compile classpath.
api libs.commons.math3
// This dependency is exported to consumers, that is to say found on their compile classpath.
api libs.commons.math3

// This dependency is used internally, and not exposed to consumers on their own compile classpath.
implementation libs.guava
// This dependency is used internally, and not exposed to consumers on their own compile classpath.
implementation libs.guava
}

// Apply a specific Java toolchain to ease working on different environments.
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}

tasks.named('test') {
// Use JUnit Platform for unit tests.
useJUnitPlatform()
// Use JUnit Platform for unit tests.
useJUnitPlatform()
}

task (commitOnDeploy, dependsOn: "spotlessApply") {
Expand All @@ -88,4 +91,4 @@ task (commitOnDeploy, dependsOn: "spotlessApply") {
}
}

// compileJava.dependsOn commitOnDeploy
compileJava.dependsOn 'spotlessApply'
38 changes: 20 additions & 18 deletions math/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import java.text.SimpleDateFormat

/*
* This file was generated by the Gradle 'init' task.
*
Expand All @@ -6,15 +8,15 @@
*/

plugins {
// Apply the java-library plugin for API and implementation separation.
id 'java-library'
id "com.diffplug.spotless" version "6.24.0"
// Apply the java-library plugin for API and implementation separation.
id 'java-library'
id "com.diffplug.spotless" version "6.24.0"

}

repositories {
// Use Maven Central for resolving dependencies.
mavenCentral()
// Use Maven Central for resolving dependencies.
mavenCentral()
}

spotless {
Expand Down Expand Up @@ -45,28 +47,28 @@ compileJava.dependsOn 'spotlessApply'


dependencies {
// Use JUnit Jupiter for testing.
testImplementation libs.junit.jupiter
// Use JUnit Jupiter for testing.
testImplementation libs.junit.jupiter

testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'

// This dependency is exported to consumers, that is to say found on their compile classpath.
api libs.commons.math3
// This dependency is exported to consumers, that is to say found on their compile classpath.
api libs.commons.math3

// This dependency is used internally, and not exposed to consumers on their own compile classpath.
implementation libs.guava
// This dependency is used internally, and not exposed to consumers on their own compile classpath.
implementation libs.guava
}

// Apply a specific Java toolchain to ease working on different environments.
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}

tasks.named('test') {
// Use JUnit Platform for unit tests.
useJUnitPlatform()
// Use JUnit Platform for unit tests.
useJUnitPlatform()
}

task (commitOnDeploy, dependsOn: "spotlessApply") {
Expand All @@ -88,4 +90,4 @@ task (commitOnDeploy, dependsOn: "spotlessApply") {
}
}

// compileJava.dependsOn commitOnDeploy
compileJava.dependsOn 'spotlessApply'
2 changes: 1 addition & 1 deletion math/src/main/java/InterpolateDouble.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,4 @@ public double getValue(double key) {
return result;
}
}
}
}
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ plugins {
}

rootProject.name = 'coppercore'
include('geometry', 'wpi_interface')
include('geometry', 'wpi_interface', 'math')

0 comments on commit 0242229

Please sign in to comment.