aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuergen Haug2018-02-05 09:22:40 -0500
committerJuergen Haug2018-02-05 09:22:40 -0500
commitf6d683be58e7d0ad5332b5ded57ec4dd33c59f0f (patch)
tree3b84773651ae3c1ce28d5b724f74ccd1c99e0164
parentb878f46f731ec93ba9f9eb78b61463dafad53d22 (diff)
downloadorg.eclipse.etrice-f6d683be58e7d0ad5332b5ded57ec4dd33c59f0f.zip
org.eclipse.etrice-f6d683be58e7d0ad5332b5ded57ec4dd33c59f0f.tar.gz
org.eclipse.etrice-f6d683be58e7d0ad5332b5ded57ec4dd33c59f0f.tar.xz
added gradle releases
-rw-r--r--build.gradle20
-rw-r--r--gradle/scmVersion.gradle27
-rw-r--r--gradle/versions.gradle8
-rw-r--r--plugins/org.eclipse.etrice.abstractexec.behavior/build.gradle4
-rw-r--r--plugins/org.eclipse.etrice.core.common/build.gradle8
-rw-r--r--plugins/org.eclipse.etrice.core.config/build.gradle2
-rw-r--r--plugins/org.eclipse.etrice.core.etmap/build.gradle4
-rw-r--r--plugins/org.eclipse.etrice.core.etphys/build.gradle2
-rw-r--r--plugins/org.eclipse.etrice.core.fsm/build.gradle4
-rw-r--r--plugins/org.eclipse.etrice.core.genmodel.fsm/build.gradle2
-rw-r--r--plugins/org.eclipse.etrice.core.room/build.gradle6
-rw-r--r--plugins/org.eclipse.etrice.etunit.converter/build.gradle8
-rw-r--r--plugins/org.eclipse.etrice.generator.c/build.gradle4
-rw-r--r--plugins/org.eclipse.etrice.generator.config/build.gradle4
-rw-r--r--plugins/org.eclipse.etrice.generator.cpp/build.gradle4
-rw-r--r--plugins/org.eclipse.etrice.generator.doc/build.gradle2
-rw-r--r--plugins/org.eclipse.etrice.generator.fsm/build.gradle8
-rw-r--r--plugins/org.eclipse.etrice.generator.gnuplot/build.gradle4
-rw-r--r--plugins/org.eclipse.etrice.generator.java/build.gradle4
-rw-r--r--plugins/org.eclipse.etrice.generator/build.gradle4
20 files changed, 78 insertions, 51 deletions
diff --git a/build.gradle b/build.gradle
index cfaa706..bb29226 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,22 +1,14 @@
-buildscript {
- repositories {
- jcenter()
- }
- dependencies {
- classpath 'org.xtext:xtext-gradle-plugin:1.0.19'
- }
+plugins {
+ id 'org.xtext.xtend' version '1.0.21'
}
-ext {
- core_runtime_version = '3.12.0'
- core_resources_version = '3.11.1'
- xtext_version = '2.12.0'
- commons_io_version = '2.5'
-}
+apply from: new File(rootDir, 'gradle/scmVersion.gradle')
allprojects {
+ apply from: new File(rootDir, 'gradle/versions.gradle')
+
group = 'org.eclipse.etrice'
- version = '1.1.1-SNAPSHOT'
+ version = scmVersion.version
repositories {
maven {
diff --git a/gradle/scmVersion.gradle b/gradle/scmVersion.gradle
new file mode 100644
index 0000000..7963a79
--- /dev/null
+++ b/gradle/scmVersion.gradle
@@ -0,0 +1,27 @@
+buildscript {
+ repositories {
+ mavenCentral()
+ }
+ dependencies {
+ classpath group: 'pl.allegro.tech.build', name: 'axion-release-plugin', version: '1.8.3'
+ }
+}
+
+apply plugin: pl.allegro.tech.build.axion.release.ReleasePlugin
+
+scmVersion {
+ tag {
+ prefix = 'v'
+ versionSeparator = '_'
+ }
+ versionCreator 'versionWithBranch'
+// localOnly = false
+ checks {
+ uncommittedChanges = false
+ aheadOfRemote = true
+ snapshotDependencies = false
+ }
+ repository {
+ pushTagsOnly = true
+ }
+} \ No newline at end of file
diff --git a/gradle/versions.gradle b/gradle/versions.gradle
new file mode 100644
index 0000000..adcd688
--- /dev/null
+++ b/gradle/versions.gradle
@@ -0,0 +1,8 @@
+
+ext.versions = [
+ 'guava' : '21.0',
+ 'xtext' : '2.12.0',
+ 'core_runtime' : '3.12.0',
+ 'core_resources' : '3.11.1',
+ 'commons_io' : '2.5'
+] \ No newline at end of file
diff --git a/plugins/org.eclipse.etrice.abstractexec.behavior/build.gradle b/plugins/org.eclipse.etrice.abstractexec.behavior/build.gradle
index 2ae95e0..766017e 100644
--- a/plugins/org.eclipse.etrice.abstractexec.behavior/build.gradle
+++ b/plugins/org.eclipse.etrice.abstractexec.behavior/build.gradle
@@ -4,6 +4,6 @@ dependencies {
compile project(':plugins:org.eclipse.etrice.core.genmodel.fsm')
compile project(':plugins:org.eclipse.etrice.generator.fsm')
- compile "org.eclipse.platform:org.eclipse.core.runtime:$core_runtime_version"
- compile "org.eclipse.xtext:org.eclipse.xtext:$xtext_version"
+ compile "org.eclipse.platform:org.eclipse.core.runtime:$versions.core_runtime"
+ compile "org.eclipse.xtext:org.eclipse.xtext:$versions.xtext"
} \ No newline at end of file
diff --git a/plugins/org.eclipse.etrice.core.common/build.gradle b/plugins/org.eclipse.etrice.core.common/build.gradle
index 3f57e1e..f48bc57 100644
--- a/plugins/org.eclipse.etrice.core.common/build.gradle
+++ b/plugins/org.eclipse.etrice.core.common/build.gradle
@@ -1,6 +1,6 @@
dependencies {
- compile "org.eclipse.xtend:org.eclipse.xtend.lib:$xtext_version"
- compile "org.eclipse.platform:org.eclipse.core.runtime:$core_runtime_version"
- compile "org.eclipse.platform:org.eclipse.core.resources:$core_resources_version"
- compile "org.eclipse.xtext:org.eclipse.xtext:$xtext_version"
+ compile "org.eclipse.xtend:org.eclipse.xtend.lib:$versions.xtext"
+ compile "org.eclipse.platform:org.eclipse.core.runtime:$versions.core_runtime"
+ compile "org.eclipse.platform:org.eclipse.core.resources:$versions.core_resources"
+ compile "org.eclipse.xtext:org.eclipse.xtext:$versions.xtext"
} \ No newline at end of file
diff --git a/plugins/org.eclipse.etrice.core.config/build.gradle b/plugins/org.eclipse.etrice.core.config/build.gradle
index a1fc32d..4838b92 100644
--- a/plugins/org.eclipse.etrice.core.config/build.gradle
+++ b/plugins/org.eclipse.etrice.core.config/build.gradle
@@ -2,5 +2,5 @@ dependencies {
compile project(':plugins:org.eclipse.etrice.core.common')
compile project(':plugins:org.eclipse.etrice.core.room')
- compile "org.eclipse.xtend:org.eclipse.xtend.lib:$xtext_version"
+ compile "org.eclipse.xtend:org.eclipse.xtend.lib:$versions.xtext"
} \ No newline at end of file
diff --git a/plugins/org.eclipse.etrice.core.etmap/build.gradle b/plugins/org.eclipse.etrice.core.etmap/build.gradle
index 34609e4..0ddd84a 100644
--- a/plugins/org.eclipse.etrice.core.etmap/build.gradle
+++ b/plugins/org.eclipse.etrice.core.etmap/build.gradle
@@ -4,6 +4,6 @@ dependencies {
compile project(':plugins:org.eclipse.etrice.core.room')
compile project(':plugins:org.eclipse.etrice.core.genmodel')
- compile "org.eclipse.xtend:org.eclipse.xtend.lib:$xtext_version"
- compile "org.eclipse.xtext:org.eclipse.xtext:$xtext_version"
+ compile "org.eclipse.xtend:org.eclipse.xtend.lib:$versions.xtext"
+ compile "org.eclipse.xtext:org.eclipse.xtext:$versions.xtext"
} \ No newline at end of file
diff --git a/plugins/org.eclipse.etrice.core.etphys/build.gradle b/plugins/org.eclipse.etrice.core.etphys/build.gradle
index 81164bb..87cd787 100644
--- a/plugins/org.eclipse.etrice.core.etphys/build.gradle
+++ b/plugins/org.eclipse.etrice.core.etphys/build.gradle
@@ -1,5 +1,5 @@
dependencies {
compile project(':plugins:org.eclipse.etrice.core.common')
- compile "org.eclipse.xtend:org.eclipse.xtend.lib:$xtext_version"
+ compile "org.eclipse.xtend:org.eclipse.xtend.lib:$versions.xtext"
} \ No newline at end of file
diff --git a/plugins/org.eclipse.etrice.core.fsm/build.gradle b/plugins/org.eclipse.etrice.core.fsm/build.gradle
index a28c269..66d1df6 100644
--- a/plugins/org.eclipse.etrice.core.fsm/build.gradle
+++ b/plugins/org.eclipse.etrice.core.fsm/build.gradle
@@ -1,6 +1,6 @@
dependencies {
compile project(':plugins:org.eclipse.etrice.core.common')
- compile "org.eclipse.xtend:org.eclipse.xtend.lib:$xtext_version"
- compile "org.eclipse.xtext:org.eclipse.xtext:$xtext_version"
+ compile "org.eclipse.xtend:org.eclipse.xtend.lib:$versions.xtext"
+ compile "org.eclipse.xtext:org.eclipse.xtext:$versions.xtext"
} \ No newline at end of file
diff --git a/plugins/org.eclipse.etrice.core.genmodel.fsm/build.gradle b/plugins/org.eclipse.etrice.core.genmodel.fsm/build.gradle
index 8b11df9..62ee377 100644
--- a/plugins/org.eclipse.etrice.core.genmodel.fsm/build.gradle
+++ b/plugins/org.eclipse.etrice.core.genmodel.fsm/build.gradle
@@ -1,5 +1,5 @@
dependencies {
compile project(':plugins:org.eclipse.etrice.core.fsm')
- compile "org.eclipse.xtext:org.eclipse.xtext:$xtext_version"
+ compile "org.eclipse.xtext:org.eclipse.xtext:$versions.xtext"
} \ No newline at end of file
diff --git a/plugins/org.eclipse.etrice.core.room/build.gradle b/plugins/org.eclipse.etrice.core.room/build.gradle
index b876357..4d77658 100644
--- a/plugins/org.eclipse.etrice.core.room/build.gradle
+++ b/plugins/org.eclipse.etrice.core.room/build.gradle
@@ -3,7 +3,7 @@ dependencies {
compile project(':plugins:org.eclipse.etrice.core.fsm')
runtime project(':plugins:org.eclipse.etrice.abstractexec.behavior')
- compile "org.eclipse.xtend:org.eclipse.xtend.lib:$xtext_version"
- compile "org.eclipse.platform:org.eclipse.core.runtime:$core_runtime_version"
- compile "org.eclipse.xtext:org.eclipse.xtext:$xtext_version"
+ compile "org.eclipse.xtend:org.eclipse.xtend.lib:$versions.xtext"
+ compile "org.eclipse.platform:org.eclipse.core.runtime:$versions.core_runtime"
+ compile "org.eclipse.xtext:org.eclipse.xtext:$versions.xtext"
} \ No newline at end of file
diff --git a/plugins/org.eclipse.etrice.etunit.converter/build.gradle b/plugins/org.eclipse.etrice.etunit.converter/build.gradle
index 5f87ab6..4f038c3 100644
--- a/plugins/org.eclipse.etrice.etunit.converter/build.gradle
+++ b/plugins/org.eclipse.etrice.etunit.converter/build.gradle
@@ -1,10 +1,10 @@
apply plugin: 'application'
dependencies {
- compile "org.eclipse.platform:org.eclipse.core.runtime:$core_runtime_version"
- compile "org.eclipse.emf:org.eclipse.emf.common:$xtext_version"
- compile "org.eclipse.emf:org.eclipse.emf.ecore:$xtext_version"
- compile "org.eclipse.emf:org.eclipse.emf.ecore.xmi:$xtext_version"
+ compile "org.eclipse.platform:org.eclipse.core.runtime:$versions.core_runtime"
+ compile "org.eclipse.emf:org.eclipse.emf.common:$versions.xtext"
+ compile "org.eclipse.emf:org.eclipse.emf.ecore:$versions.xtext"
+ compile "org.eclipse.emf:org.eclipse.emf.ecore.xmi:$versions.xtext"
}
ext.classpath = sourceSets.main.runtimeClasspath
diff --git a/plugins/org.eclipse.etrice.generator.c/build.gradle b/plugins/org.eclipse.etrice.generator.c/build.gradle
index e9e58ab..c36cdb9 100644
--- a/plugins/org.eclipse.etrice.generator.c/build.gradle
+++ b/plugins/org.eclipse.etrice.generator.c/build.gradle
@@ -12,8 +12,8 @@ dependencies {
compile project(':plugins:org.eclipse.etrice.generator.doc')
compile project(':plugins:org.eclipse.etrice.generator.gnuplot')
- compile "org.eclipse.xtend:org.eclipse.xtend.lib:$xtext_version"
- compile "org.eclipse.xtext:org.eclipse.xtext:$xtext_version"
+ compile "org.eclipse.xtend:org.eclipse.xtend.lib:$versions.xtext"
+ compile "org.eclipse.xtext:org.eclipse.xtext:$versions.xtext"
}
mainClassName = 'org.eclipse.etrice.generator.c.Main'
diff --git a/plugins/org.eclipse.etrice.generator.config/build.gradle b/plugins/org.eclipse.etrice.generator.config/build.gradle
index bca3127..53413ed 100644
--- a/plugins/org.eclipse.etrice.generator.config/build.gradle
+++ b/plugins/org.eclipse.etrice.generator.config/build.gradle
@@ -6,6 +6,6 @@ dependencies {
compile project(':plugins:org.eclipse.etrice.core.config')
compile project(':plugins:org.eclipse.etrice.generator')
- compile "org.eclipse.xtend:org.eclipse.xtend.lib:$xtext_version"
- compile "org.eclipse.xtext:org.eclipse.xtext:$xtext_version"
+ compile "org.eclipse.xtend:org.eclipse.xtend.lib:$versions.xtext"
+ compile "org.eclipse.xtext:org.eclipse.xtext:$versions.xtext"
} \ No newline at end of file
diff --git a/plugins/org.eclipse.etrice.generator.cpp/build.gradle b/plugins/org.eclipse.etrice.generator.cpp/build.gradle
index c764869..4be4d2f 100644
--- a/plugins/org.eclipse.etrice.generator.cpp/build.gradle
+++ b/plugins/org.eclipse.etrice.generator.cpp/build.gradle
@@ -11,8 +11,8 @@ dependencies {
compile project(':plugins:org.eclipse.etrice.generator.config')
compile project(':plugins:org.eclipse.etrice.generator.doc')
- compile "org.eclipse.xtend:org.eclipse.xtend.lib:$xtext_version"
- compile "org.eclipse.xtext:org.eclipse.xtext:$xtext_version"
+ compile "org.eclipse.xtend:org.eclipse.xtend.lib:$versions.xtext"
+ compile "org.eclipse.xtext:org.eclipse.xtext:$versions.xtext"
}
mainClassName = 'org.eclipse.etrice.generator.cpp.Main'
diff --git a/plugins/org.eclipse.etrice.generator.doc/build.gradle b/plugins/org.eclipse.etrice.generator.doc/build.gradle
index b6b3b24..f9280e8 100644
--- a/plugins/org.eclipse.etrice.generator.doc/build.gradle
+++ b/plugins/org.eclipse.etrice.generator.doc/build.gradle
@@ -5,5 +5,5 @@ dependencies {
compile project(':plugins:org.eclipse.etrice.generator')
compile project(':plugins:org.eclipse.etrice.generator.fsm')
- compile "org.eclipse.xtend:org.eclipse.xtend.lib:$xtext_version"
+ compile "org.eclipse.xtend:org.eclipse.xtend.lib:$versions.xtext"
} \ No newline at end of file
diff --git a/plugins/org.eclipse.etrice.generator.fsm/build.gradle b/plugins/org.eclipse.etrice.generator.fsm/build.gradle
index 328aee3..5a71368 100644
--- a/plugins/org.eclipse.etrice.generator.fsm/build.gradle
+++ b/plugins/org.eclipse.etrice.generator.fsm/build.gradle
@@ -2,8 +2,8 @@ dependencies {
compile project(':plugins:org.eclipse.etrice.core.fsm')
compile project(':plugins:org.eclipse.etrice.core.genmodel.fsm')
- compile "org.eclipse.xtend:org.eclipse.xtend.lib:$xtext_version"
- compile "org.eclipse.platform:org.eclipse.core.runtime:$core_runtime_version"
- compile "org.eclipse.platform:org.eclipse.core.resources:$core_resources_version"
- compile "commons-io:commons-io:$commons_io_version"
+ compile "org.eclipse.xtend:org.eclipse.xtend.lib:$versions.xtext"
+ compile "org.eclipse.platform:org.eclipse.core.runtime:$versions.core_runtime"
+ compile "org.eclipse.platform:org.eclipse.core.resources:$versions.core_resources"
+ compile "commons-io:commons-io:$versions.commons_io"
} \ No newline at end of file
diff --git a/plugins/org.eclipse.etrice.generator.gnuplot/build.gradle b/plugins/org.eclipse.etrice.generator.gnuplot/build.gradle
index 7970f2b..aff2b64 100644
--- a/plugins/org.eclipse.etrice.generator.gnuplot/build.gradle
+++ b/plugins/org.eclipse.etrice.generator.gnuplot/build.gradle
@@ -4,6 +4,6 @@ dependencies {
compile project(':plugins:org.eclipse.etrice.generator')
compile project(':plugins:org.eclipse.etrice.generator.fsm')
- compile "org.eclipse.xtend:org.eclipse.xtend.lib:$xtext_version"
- compile "org.eclipse.xtext:org.eclipse.xtext:$xtext_version"
+ compile "org.eclipse.xtend:org.eclipse.xtend.lib:$versions.xtext"
+ compile "org.eclipse.xtext:org.eclipse.xtext:$versions.xtext"
} \ No newline at end of file
diff --git a/plugins/org.eclipse.etrice.generator.java/build.gradle b/plugins/org.eclipse.etrice.generator.java/build.gradle
index b40a25a..e660121 100644
--- a/plugins/org.eclipse.etrice.generator.java/build.gradle
+++ b/plugins/org.eclipse.etrice.generator.java/build.gradle
@@ -11,8 +11,8 @@ dependencies {
compile project(':plugins:org.eclipse.etrice.generator.config')
compile project(':plugins:org.eclipse.etrice.generator.doc')
- compile "org.eclipse.xtend:org.eclipse.xtend.lib:$xtext_version"
- compile "org.eclipse.xtext:org.eclipse.xtext:$xtext_version"
+ compile "org.eclipse.xtend:org.eclipse.xtend.lib:$versions.xtext"
+ compile "org.eclipse.xtext:org.eclipse.xtext:$versions.xtext"
}
mainClassName = 'org.eclipse.etrice.generator.java.Main'
diff --git a/plugins/org.eclipse.etrice.generator/build.gradle b/plugins/org.eclipse.etrice.generator/build.gradle
index 492adc6..bdb7e7a 100644
--- a/plugins/org.eclipse.etrice.generator/build.gradle
+++ b/plugins/org.eclipse.etrice.generator/build.gradle
@@ -7,6 +7,6 @@ dependencies {
compile project(':plugins:org.eclipse.etrice.core.etmap')
compile project(':plugins:org.eclipse.etrice.generator.fsm')
- compile "org.eclipse.xtend:org.eclipse.xtend.lib:$xtext_version"
- compile "org.eclipse.xtext:org.eclipse.xtext:$xtext_version"
+ compile "org.eclipse.xtend:org.eclipse.xtend.lib:$versions.xtext"
+ compile "org.eclipse.xtext:org.eclipse.xtext:$versions.xtext"
} \ No newline at end of file