Skip to content
Snippets Groups Projects
Commit e52489c5 authored by dgelessus's avatar dgelessus
Browse files

Replace uses of deprecated Gradle convention properties

parent e284fdf0
Branches
No related tags found
No related merge requests found
......@@ -2,7 +2,9 @@ apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
project.archivesBaseName = "${rootProject.name}-btypes"
base {
archivesName = "${rootProject.name}-btypes"
}
repositories {
mavenCentral()
......@@ -17,6 +19,11 @@ dependencies {
testImplementation 'junit:junit:4.8.2'
}
java {
sourceCompatibility = 1.8
targetCompatibility = 1.8
}
task fatJar(type: Jar) {
archivesBaseName = project.name + '-all'
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
......@@ -35,10 +42,6 @@ tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked"
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
sourceSets.main.java.srcDirs = ['src/main/java']
sourceSets.test.runtimeClasspath += files(sourceSets.main.java.srcDirs)
......
......@@ -2,7 +2,9 @@ apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
project.archivesBaseName = "${rootProject.name}-btypes"
base {
archivesName = "${rootProject.name}-btypes"
}
repositories {
mavenCentral()
......@@ -17,6 +19,11 @@ dependencies {
testImplementation 'junit:junit:4.8.2'
}
java {
sourceCompatibility = 1.8
targetCompatibility = 1.8
}
task fatJar(type: Jar) {
archivesBaseName = project.name + '-all'
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
......@@ -35,9 +42,6 @@ tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked"
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
sourceSets.main.java.srcDirs = ['src/main/java']
sourceSets.test.runtimeClasspath += files(sourceSets.main.java.srcDirs)
......
......@@ -4,11 +4,12 @@ apply plugin: 'antlr'
apply plugin: 'eclipse'
apply plugin: 'idea'
project.archivesBaseName = 'B2Program'
project.version = '0.1.0-SNAPSHOT' // If no snapshot, adapt ANTLR parser tag to git revision
project.group = 'de.hhu.stups'
mainClassName = 'de.hhu.stups.codegenerator.CodeGenerator'
base {
archivesName = 'B2Program'
}
repositories {
mavenCentral()
......@@ -30,6 +31,15 @@ dependencies {
testImplementation 'junit:junit:4.13.2'
}
java {
sourceCompatibility = 1.8
targetCompatibility = 1.8
}
application {
mainClass = 'de.hhu.stups.codegenerator.CodeGenerator'
}
test {
testLogging {
exceptionFormat = 'full'
......@@ -69,9 +79,6 @@ task fatJar(type: Jar) {
with jar
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
sourceSets.main.java.srcDirs = ['src/main/java']
sourceSets.test.runtimeClasspath += files(sourceSets.main.java.srcDirs)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment