Skip to content
Snippets Groups Projects
Commit d7ddbe40 authored by René Schöne's avatar René Schöne
Browse files

Update to Gradle 6.7.1 and convetions plugins.

parent 657e0f1c
No related branches found
No related tags found
No related merge requests found
Pipeline #8288 passed
plugins { plugins {
id "com.github.ben-manes.versions" version "0.34.0" id 'com.github.ben-manes.versions'
}
dependencyUpdates.gradleReleaseChannel="current"
dependencyUpdates.revision="release"
allprojects {
group = 'de.tudresden.inf.st'
version = '0.1'
}
subprojects {
apply plugin: 'java-library'
apply plugin: 'idea'
apply plugin: "com.github.ben-manes.versions"
sourceCompatibility = 1.8
targetCompatibility = 1.8
task packageSources(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts.archives packageSources
configurations {
testArtifacts.extendsFrom testRuntime
}
task testJar(type: Jar) {
classifier "test"
from sourceSets.test.output
}
artifacts {
testArtifacts testJar
}
repositories {
mavenCentral()
}
dependencies {
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: "${jupiter_version}"
testRuntimeOnly group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: "${jupiter_version}"
testImplementation group: 'org.assertj', name: 'assertj-core', version: '3.18.0'
}
test {
useJUnitPlatform()
maxHeapSize = '1G'
}
} }
build/
plugins {
id 'groovy-gradle-plugin'
}
repositories {
gradlePluginPortal()
}
dependencies {
implementation 'com.github.ben-manes:gradle-versions-plugin:0.36.0'
}
plugins {
id 'relast2uml.java-common-conventions'
id 'application'
}
plugins {
id 'java'
id 'idea'
id 'com.github.ben-manes.versions'
}
repositories {
mavenCentral()
}
dependencies {
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: "${jupiter_version}"
testImplementation group: 'org.assertj', name: 'assertj-core', version: '3.18.1'
testRuntimeOnly group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: "${jupiter_version}"
}
tasks.named('test') {
useJUnitPlatform()
}
plugins {
id 'relast2uml.java-common-conventions'
id 'java-library'
}
dependencies {
api group: 'net.sf.beaver', name: 'beaver-rt', version: '0.9.11'
}
apply plugin: 'jastadd'
apply plugin: 'idea'
sourceCompatibility = 1.8
repositories {
jcenter()
}
buildscript { buildscript {
repositories.jcenter() repositories.mavenLocal()
repositories.mavenCentral()
dependencies { dependencies {
classpath 'org.jastadd:jastaddgradle:1.13.3' classpath group: 'org.jastadd', name: 'jastaddgradle', version: '1.13.3'
} }
} }
plugins {
id 'relast2uml.java-jastadd-conventions'
}
apply plugin: 'jastadd'
dependencies { dependencies {
implementation group: 'com.github.spullara.mustache.java', name: 'compiler', version: "${mustache_java_version}" implementation group: 'com.github.spullara.mustache.java', name: 'compiler', version: "${mustache_java_version}"
api group: 'net.sf.beaver', name: 'beaver-rt', version: '0.9.11'
} }
def versionFile = 'src/main/resources/dumpAstVersion.properties' def versionFile = 'src/main/resources/dumpAstVersion.properties'
...@@ -51,12 +47,6 @@ File genSrc = file("src/gen/java") ...@@ -51,12 +47,6 @@ File genSrc = file("src/gen/java")
sourceSets.main.java.srcDir genSrc sourceSets.main.java.srcDir genSrc
idea.module.generatedSourceDirs += genSrc idea.module.generatedSourceDirs += genSrc
test {
useJUnitPlatform()
maxHeapSize = '1G'
}
File dumpAstGrammar = file('./src/main/jastadd/DumpAst.relast') File dumpAstGrammar = file('./src/main/jastadd/DumpAst.relast')
File mustacheGrammar = file('./src/main/jastadd/mustache/Mustache.relast') File mustacheGrammar = file('./src/main/jastadd/mustache/Mustache.relast')
......
apply plugin: 'jastadd'
apply plugin: 'idea'
sourceCompatibility = 1.8
repositories {
jcenter()
}
buildscript { buildscript {
repositories.jcenter() repositories.mavenLocal()
repositories.mavenCentral()
dependencies { dependencies {
classpath 'org.jastadd:jastaddgradle:1.13.3' classpath group: 'org.jastadd', name: 'jastaddgradle', version: '1.13.3'
} }
} }
plugins {
id 'relast2uml.java-jastadd-conventions'
}
apply plugin: 'jastadd'
dependencies { dependencies {
implementation fileTree(include: ['plantuml.jar'], dir: '../libs') implementation fileTree(include: ['plantuml.jar'], dir: '../libs')
implementation group: 'com.github.spullara.mustache.java', name: 'compiler', version: "${mustache_java_version}" implementation group: 'com.github.spullara.mustache.java', name: 'compiler', version: "${mustache_java_version}"
api group: 'net.sf.beaver', name: 'beaver-rt', version: '0.9.11'
} }
def versionFile = '../dumpAst/src/main/resources/dumpAstVersion.properties' def versionFile = '../dumpAst/src/main/resources/dumpAstVersion.properties'
...@@ -44,12 +41,6 @@ File genSrc = file("src/gen/java") ...@@ -44,12 +41,6 @@ File genSrc = file("src/gen/java")
sourceSets.main.java.srcDir genSrc sourceSets.main.java.srcDir genSrc
idea.module.generatedSourceDirs += genSrc idea.module.generatedSourceDirs += genSrc
test {
useJUnitPlatform()
maxHeapSize = '1G'
}
File dumpAstGrammar = file('../dumpAst/src/main/jastadd/DumpAst.relast') File dumpAstGrammar = file('../dumpAst/src/main/jastadd/DumpAst.relast')
task relast(type: JavaExec) { task relast(type: JavaExec) {
......
No preview for this file type
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists
#!/usr/bin/env sh #!/usr/bin/env sh
#
# Copyright 2015 the original author or authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
############################################################################## ##############################################################################
## ##
## Gradle start up script for UN*X ## Gradle start up script for UN*X
...@@ -28,7 +44,7 @@ APP_NAME="Gradle" ...@@ -28,7 +44,7 @@ APP_NAME="Gradle"
APP_BASE_NAME=`basename "$0"` APP_BASE_NAME=`basename "$0"`
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS="" DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
# Use the maximum available, or set MAX_FD != -1 to use that value. # Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD="maximum" MAX_FD="maximum"
...@@ -109,8 +125,8 @@ if $darwin; then ...@@ -109,8 +125,8 @@ if $darwin; then
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
fi fi
# For Cygwin, switch paths to Windows format before running java # For Cygwin or MSYS, switch paths to Windows format before running java
if $cygwin ; then if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
APP_HOME=`cygpath --path --mixed "$APP_HOME"` APP_HOME=`cygpath --path --mixed "$APP_HOME"`
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
JAVACMD=`cygpath --unix "$JAVACMD"` JAVACMD=`cygpath --unix "$JAVACMD"`
......
@rem
@rem Copyright 2015 the original author or authors.
@rem
@rem Licensed under the Apache License, Version 2.0 (the "License");
@rem you may not use this file except in compliance with the License.
@rem You may obtain a copy of the License at
@rem
@rem https://www.apache.org/licenses/LICENSE-2.0
@rem
@rem Unless required by applicable law or agreed to in writing, software
@rem distributed under the License is distributed on an "AS IS" BASIS,
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@rem See the License for the specific language governing permissions and
@rem limitations under the License.
@rem
@if "%DEBUG%" == "" @echo off @if "%DEBUG%" == "" @echo off
@rem ########################################################################## @rem ##########################################################################
@rem @rem
...@@ -14,7 +30,7 @@ set APP_BASE_NAME=%~n0 ...@@ -14,7 +30,7 @@ set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME% set APP_HOME=%DIRNAME%
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS= set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
@rem Find java.exe @rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome if defined JAVA_HOME goto findJavaFromJavaHome
......
apply plugin: 'jastadd'
apply plugin: 'application'
apply plugin: 'idea'
sourceCompatibility = 1.8
mainClassName = 'de.tudresden.inf.st.jastadd.grammar2uml.compiler.Compiler'
repositories {
jcenter()
}
buildscript { buildscript {
repositories.jcenter() repositories.mavenLocal()
repositories.mavenCentral()
dependencies { dependencies {
classpath 'org.jastadd:jastaddgradle:1.13.3' classpath group: 'org.jastadd', name: 'jastaddgradle', version: '1.13.3'
} }
} }
plugins {
id 'relast2uml.java-jastadd-conventions'
id 'relast2uml.java-application-conventions'
}
apply plugin: 'jastadd'
application.mainClassName = 'de.tudresden.inf.st.jastadd.grammar2uml.compiler.Compiler'
dependencies { dependencies {
implementation project(':relast.preprocessor') implementation project(':relast.preprocessor')
implementation group: 'com.github.spullara.mustache.java', name: 'compiler', version: "${mustache_java_version}" implementation group: 'com.github.spullara.mustache.java', name: 'compiler', version: "${mustache_java_version}"
runtime group: 'org.jastadd', name: 'jastadd', version: '2.3.4' runtime group: 'org.jastadd', name: 'jastadd', version: '2.3.4'
api group: 'net.sf.beaver', name: 'beaver-rt', version: '0.9.11'
} }
def versionFile = 'src/main/resources/grammar2umlVersion.properties' def versionFile = 'src/main/resources/grammar2umlVersion.properties'
...@@ -46,7 +43,7 @@ task newVersion() { ...@@ -46,7 +43,7 @@ task newVersion() {
jar { jar {
manifest { manifest {
attributes "Main-Class": mainClassName attributes "Main-Class": application.mainClassName
} }
from { from {
...@@ -61,12 +58,6 @@ File genSrc = file("src/gen/java") ...@@ -61,12 +58,6 @@ File genSrc = file("src/gen/java")
sourceSets.main.java.srcDir genSrc sourceSets.main.java.srcDir genSrc
idea.module.generatedSourceDirs += genSrc idea.module.generatedSourceDirs += genSrc
test {
useJUnitPlatform()
maxHeapSize = '1G'
}
File preprocessorGrammar = file('../relast.preprocessor/src/main/jastadd/RelAst.relast') File preprocessorGrammar = file('../relast.preprocessor/src/main/jastadd/RelAst.relast')
File grammar2umlGrammar = file('./src/main/jastadd/Grammar2Uml.relast') File grammar2umlGrammar = file('./src/main/jastadd/Grammar2Uml.relast')
File intermediateGrammar = file('./src/main/jastadd/MustacheNodes.relast') File intermediateGrammar = file('./src/main/jastadd/MustacheNodes.relast')
......
apply plugin: 'jastadd'
apply plugin: 'idea'
repositories {
mavenCentral()
}
buildscript { buildscript {
repositories.jcenter() repositories.mavenLocal()
repositories.mavenCentral()
dependencies { dependencies {
classpath 'org.jastadd:jastaddgradle:1.13.3' classpath group: 'org.jastadd', name: 'jastaddgradle', version: '1.13.3'
} }
} }
dependencies { plugins {
// runtime group: 'org.jastadd', name: 'jastadd', version: '2.3.4' id 'relast2uml.java-jastadd-conventions'
}
apply plugin: 'jastadd'
dependencies {
testImplementation project(':dumpAst') testImplementation project(':dumpAst')
} }
...@@ -22,12 +20,6 @@ File genSrc = file("src/gen/java") ...@@ -22,12 +20,6 @@ File genSrc = file("src/gen/java")
sourceSets.main.java.srcDir genSrc sourceSets.main.java.srcDir genSrc
idea.module.generatedSourceDirs += genSrc idea.module.generatedSourceDirs += genSrc
test {
useJUnitPlatform()
maxHeapSize = '1G'
}
File testingGrammar = file('./src/main/jastadd/testDumper.relast') File testingGrammar = file('./src/main/jastadd/testDumper.relast')
task relast(type: JavaExec) { task relast(type: JavaExec) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment