Skip to content

Commit

Permalink
Migrate to algomate (#1)
Browse files Browse the repository at this point in the history
* Migrate to algomate

* Remove reference to public tests
  • Loading branch information
alexstaeding authored Oct 17, 2023
1 parent d40029a commit 87d6e5d
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 56 deletions.
59 changes: 14 additions & 45 deletions build.gradle.kts
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)
}
12 changes: 2 additions & 10 deletions gradle/libs.versions.toml
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"
8 changes: 8 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,12 @@ dependencyResolutionManagement {
}
}

pluginManagement {
repositories {
// mavenLocal()
gradlePluginPortal()
mavenCentral()
}
}

rootProject.name = "H00-Student"
1 change: 0 additions & 1 deletion version

This file was deleted.

0 comments on commit 87d6e5d

Please sign in to comment.