2016-10-23 13:49:27 +00:00
|
|
|
/*
|
|
|
|
* Root project for xtext-core.
|
|
|
|
*/
|
|
|
|
|
2016-11-22 15:35:07 +00:00
|
|
|
import java.time.format.DateTimeFormatter
|
|
|
|
import java.time.LocalDateTime
|
|
|
|
|
2016-11-23 13:37:56 +00:00
|
|
|
buildscript {
|
2016-12-22 15:41:45 +00:00
|
|
|
apply from: "${rootDir}/gradle/versions.gradle"
|
2019-04-01 15:32:13 +00:00
|
|
|
repositories.mavenCentral()
|
2021-11-26 11:06:46 +00:00
|
|
|
repositories.maven { url 'https://jitpack.io' } // for this plugin
|
2016-11-23 13:37:56 +00:00
|
|
|
dependencies {
|
2017-01-11 14:53:40 +00:00
|
|
|
classpath "org.xtext:xtext-gradle-plugin:$versions.xtext_gradle_plugin"
|
2016-11-23 13:37:56 +00:00
|
|
|
}
|
2021-11-26 11:06:46 +00:00
|
|
|
dependencies {
|
|
|
|
classpath 'com.github.johni0702:gradle-ecj-plugin:master-SNAPSHOT'
|
|
|
|
}
|
2016-11-23 13:37:56 +00:00
|
|
|
}
|
|
|
|
|
2018-05-28 15:34:43 +00:00
|
|
|
plugins {
|
2020-10-06 13:01:19 +00:00
|
|
|
id 'org.ajoberstar.grgit' version '4.1.0'
|
2018-05-28 15:34:43 +00:00
|
|
|
}
|
|
|
|
|
2016-11-23 13:37:56 +00:00
|
|
|
apply from: "${rootDir}/gradle/versions.gradle"
|
2016-12-22 15:41:45 +00:00
|
|
|
apply from: "${rootDir}/gradle/bootstrap-setup.gradle"
|
2016-11-23 13:37:56 +00:00
|
|
|
|
2016-11-22 15:35:07 +00:00
|
|
|
ext.buildTime = DateTimeFormatter.ofPattern('yyyyMMdd-HHmm').format(LocalDateTime.now())
|
2016-10-17 12:05:36 +00:00
|
|
|
|
2016-06-09 13:48:56 +00:00
|
|
|
subprojects {
|
2021-11-26 11:06:46 +00:00
|
|
|
|
|
|
|
configurations {
|
|
|
|
ecj
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
ecj 'org.eclipse.jdt:ecj:3.27.0'
|
|
|
|
}
|
|
|
|
|
2016-11-23 13:37:56 +00:00
|
|
|
group = 'org.eclipse.xtext'
|
|
|
|
version = rootProject.version
|
|
|
|
|
2019-09-06 09:25:27 +00:00
|
|
|
apply plugin: 'maven-publish'
|
2021-08-10 10:02:12 +00:00
|
|
|
apply plugin: 'java-library'
|
2021-11-26 11:06:46 +00:00
|
|
|
//apply plugin: 'de.johni0702.ecj'
|
2019-02-08 22:42:42 +00:00
|
|
|
dependencies {
|
2021-08-10 10:02:12 +00:00
|
|
|
api platform("org.eclipse.xtext:xtext-dev-bom:$project.version")
|
2019-01-11 15:41:50 +00:00
|
|
|
}
|
2017-01-06 12:56:39 +00:00
|
|
|
if (findProperty('compileXtend') == 'true') {
|
2017-01-02 10:47:11 +00:00
|
|
|
apply plugin: 'org.xtext.xtend'
|
|
|
|
}
|
2016-06-10 15:52:23 +00:00
|
|
|
apply plugin: 'eclipse'
|
2016-07-14 10:22:33 +00:00
|
|
|
|
|
|
|
apply from: "${rootDir}/gradle/upstream-repositories.gradle"
|
2016-06-09 13:48:56 +00:00
|
|
|
apply from: "${rootDir}/gradle/java-compiler-settings.gradle"
|
2016-11-22 15:35:07 +00:00
|
|
|
apply from: "${rootDir}/gradle/xtend-compiler-settings.gradle"
|
2016-06-15 09:03:53 +00:00
|
|
|
apply from: "${rootDir}/gradle/maven-deployment.gradle"
|
2017-01-12 08:51:31 +00:00
|
|
|
// The bootstrap project uses only the mwe2 source set
|
|
|
|
if (!name.endsWith('bootstrap')) {
|
|
|
|
apply from: "${rootDir}/gradle/eclipse-project-layout.gradle"
|
|
|
|
}
|
2016-10-17 12:05:36 +00:00
|
|
|
apply from: "${rootDir}/gradle/manifest-gen.gradle"
|
2016-11-08 11:01:25 +00:00
|
|
|
apply from: "${rootDir}/gradle/validation.gradle"
|
2021-11-26 11:06:46 +00:00
|
|
|
compileJava {
|
|
|
|
options.fork = true
|
|
|
|
options.encoding = 'ISO-8859-1'
|
|
|
|
options.compilerArgs = ['-properties', "${rootDir}/.settings/org.eclipse.jdt.core.prefs", '-encoding', 'ISO-8859-1']
|
|
|
|
options.forkOptions.with {
|
|
|
|
executable = 'java'
|
|
|
|
jvmArgs = ['-classpath', project.configurations.ecj.asPath, 'org.eclipse.jdt.internal.compiler.batch.Main']
|
|
|
|
}
|
|
|
|
}
|
|
|
|
tasks.withType(JavaCompile) {
|
|
|
|
options.headerOutputDirectory.convention(null)
|
|
|
|
}
|
2016-06-09 13:48:56 +00:00
|
|
|
}
|