Skip to content

Commit

Permalink
Merge pull request #37 from kit-sdq/refactor
Browse files Browse the repository at this point in the history
Major refactor, including update to Java 21, new IntelliJ Gradle Plugin, single-workspace model, and Artemis4j 2.0
  • Loading branch information
Luro02 authored Sep 27, 2024
2 parents 7cc1de5 + 274a65a commit f2bf6b6
Show file tree
Hide file tree
Showing 83 changed files with 4,091 additions and 3,463 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '17'
java-version: '21'
distribution: 'temurin'
- name: Build project with gradle
uses: gradle/actions/setup-gradle@v4
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -180,4 +180,5 @@ gradle-app.setting
# example project that is opened by the test IntelliJ instance
exampleProject/

grading-config-example.json
grading-config-example.json
.intellijPlatform/
8 changes: 8 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 27 additions & 2 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 28 additions & 12 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,33 +1,49 @@
// See https://github.com/JetBrains/gradle-intellij-plugin/
plugins {
id 'org.jetbrains.intellij' version '1.17.4'
id("org.jetbrains.intellij.platform") version "2.0.1"
id 'java'
id 'com.diffplug.spotless' version '6.25.0'
}

group 'edu.kit.kastel.sdq'
version '1.0-SNAPSHOT'

java {
sourceCompatibility = "21"
targetCompatibility = "21"
}

repositories {
mavenCentral()
mavenLocal()
mavenCentral()
intellijPlatform {
defaultRepositories()
}
maven {
url 'https://s01.oss.sonatype.org/content/repositories/snapshots'
}
}

dependencies {
implementation 'edu.kit.kastel.sdq:artemis4j:6.7.5'
implementation 'org.eclipse.jgit:org.eclipse.jgit:6.10.0.202406032230-r'
implementation 'org.apache.commons:commons-io:1.3.2'
implementation 'de.firemage.autograder:autograder-cmd:' + AUTOGRADER_VERION
implementation 'de.firemage.autograder:autograder-core:' + AUTOGRADER_VERION
implementation 'de.firemage.autograder:autograder-extra:' + AUTOGRADER_VERION
intellijPlatform {
intellijIdeaCommunity('2024.2.1')
pluginVerifier()
bundledPlugin("com.intellij.java")
bundledPlugin("org.jetbrains.idea.maven")
instrumentationTools()
}
implementation 'edu.kit.kastel.sdq:artemis4j:7.5.0-SNAPSHOT'
// Tests
testImplementation 'org.junit.jupiter:junit-jupiter-api:' + JUNIT_VERSION
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:' + JUNIT_VERSION
testImplementation 'com.tngtech.archunit:archunit:' + ARCHUNIT_VERSION
testImplementation 'com.tngtech.archunit:archunit-junit5:' + ARCHUNIT_VERSION
}

intellij {
version = '2024.1.4'
plugins = ['com.intellij.java']
intellijPlatform {
pluginConfiguration {
name = "IntelliGrade"
}
}
patchPluginXml {
changeNotes = """"""
Expand All @@ -38,7 +54,7 @@ test {

tasks {
runIde {
autoReloadPlugins = true
autoReload = true
}

buildSearchableOptions {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
AUTOGRADER_VERION = 0.5.41
JUNIT_VERSION = 5.11.1
ARCHUNIT_VERSION = 1.3.0

This file was deleted.

12 changes: 0 additions & 12 deletions src/main/java/edu/kit/kastel/exceptions/ImplementationMissing.java

This file was deleted.

This file was deleted.

Loading

0 comments on commit f2bf6b6

Please sign in to comment.