Skip to content

Commit

Permalink
Updating Gradle build file
Browse files Browse the repository at this point in the history
  • Loading branch information
emichael committed Nov 4, 2023
1 parent c129621 commit 33a4eb6
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
// Gradle 6.4.1

plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '5.2.0'
id 'com.github.johnrengelman.shadow' version '8.1.1'
}

import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar

sourceCompatibility = '14'
targetCompatibility = '14'
java {
sourceCompatibility = '14'
targetCompatibility = '14'
}

sourceSets {
main {
Expand Down Expand Up @@ -131,31 +131,31 @@ task graderJar(type: ShadowJar) {

task scaffoldingSourcesJar(type: ShadowJar) {
archiveBaseName = 'framework'
classifier = 'sources'
archiveClassifier = 'sources'
from sourceSets.main.java
}

task graderSourcesJar(type: ShadowJar) {
archiveBaseName = 'grader'
classifier = 'sources'
archiveClassifier = 'sources'
from sourceSets.grader.java
}

task scaffoldingDependenciesJar(type: ShadowJar) {
archiveBaseName = 'framework'
classifier = 'deps'
archiveClassifier = 'deps'
configurations = [ project.configurations.runtimeClasspath ]
}

task graderDependenciesJar(type: ShadowJar) {
archiveBaseName = 'grader'
classifier = 'deps'
archiveClassifier = 'deps'
configurations = [ project.configurations.graderRuntimeClasspath ]
}

task scaffoldingDependenciesSourcesJar(type: ShadowJar) {
archiveBaseName = 'framework'
classifier = 'deps-sources'
archiveClassifier = 'deps-sources'
configurations = [ project.configurations.sources ]
}

Expand Down

0 comments on commit 33a4eb6

Please sign in to comment.