-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Migrate to algomate * Remove reference to public tests
- Loading branch information
1 parent
d40029a
commit 87d6e5d
Showing
4 changed files
with
24 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,24 @@ | ||
plugins { | ||
java | ||
application | ||
alias(libs.plugins.style) | ||
alias(libs.plugins.jagr.gradle) | ||
alias(libs.plugins.algomate) | ||
} | ||
|
||
version = file("version").readLines().first() | ||
|
||
jagr { | ||
exercise { | ||
assignmentId.set("h00") | ||
submissions { | ||
val main by creating { | ||
// ACHTUNG! | ||
// Setzen Sie im folgenden Bereich Ihre TU-ID (NICHT Ihre Matrikelnummer!), Ihren Nachnamen und Ihren Vornamen | ||
// in Anführungszeichen (z.B. "ab12cdef" für Ihre TU-ID) ein! | ||
// studentId.set("") | ||
// firstName.set("") | ||
// lastName.set("") | ||
} | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation(libs.annotations) | ||
implementation(libs.algoutils.student) | ||
implementation(libs.fopbot) | ||
testImplementation(libs.junit.core) | ||
} | ||
submission { | ||
// ACHTUNG! | ||
// Setzen Sie im folgenden Bereich Ihre TU-ID (NICHT Ihre Matrikelnummer!), Ihren Nachnamen und Ihren Vornamen | ||
// in Anführungszeichen (z.B. "ab12cdef" für Ihre TU-ID) ein! | ||
studentId = null | ||
firstName = null | ||
lastName = null | ||
|
||
application { | ||
mainClass.set("h00.Main") | ||
// Optionally require own tests for mainBuildSubmission task. Default is false | ||
requireTests = false | ||
} | ||
|
||
tasks { | ||
val runDir = File("build/run") | ||
withType<JavaExec> { | ||
doFirst { | ||
runDir.mkdirs() | ||
} | ||
workingDir = runDir | ||
} | ||
test { | ||
doFirst { | ||
runDir.mkdirs() | ||
} | ||
workingDir = runDir | ||
useJUnitPlatform() | ||
} | ||
withType<JavaCompile> { | ||
options.encoding = "UTF-8" | ||
sourceCompatibility = "17" | ||
targetCompatibility = "17" | ||
} | ||
dependencies { | ||
// libs.fopbot method generated from ./gradle/libs.versions.toml | ||
implementation(libs.fopbot) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,5 @@ | ||
[versions] | ||
algoutils = "0.7.1-SNAPSHOT" | ||
|
||
[libraries] | ||
annotations = "org.jetbrains:annotations:23.0.0" | ||
algoutils-student = { module = "org.tudalgo:algoutils-student", version.ref = "algoutils" } | ||
algoutils-tutor = { module = "org.tudalgo:algoutils-tutor", version.ref = "algoutils" } | ||
junit-core = { module = "org.junit.jupiter:junit-jupiter", version = "5.9.1" } | ||
fopbot = {module = "org.tudalgo:fopbot", version = "0.5.1-SNAPSHOT"} | ||
fopbot = "org.tudalgo:fopbot:0.5.0" | ||
|
||
[plugins] | ||
style = { id = "org.sourcegrade.style", version = "2.1.0" } | ||
jagr-gradle = { id = "org.sourcegrade.jagr-gradle", version = "0.10.0" } | ||
algomate = "org.tudalgo.algomate:0.6.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters