mirror of
https://github.com/sigmasternchen/xtext-core
synced 2025-03-15 08:18:55 +00:00
Created xtext-core build (without tests)
This commit is contained in:
parent
3f9dc023df
commit
994b2b644e
22 changed files with 152 additions and 63 deletions
|
@ -1,12 +1,11 @@
|
|||
Manifest-Version: 1.0
|
||||
Bundle-ManifestVersion: 2
|
||||
Bundle-Name: %pluginName
|
||||
Bundle-Name: Xtext IDE Core
|
||||
Bundle-SymbolicName: org.eclipse.xtext.ide;singleton:=true
|
||||
Bundle-Version: 2.11.0.qualifier
|
||||
Bundle-Localization: plugin
|
||||
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
|
||||
Bundle-ActivationPolicy: lazy
|
||||
Bundle-Vendor: %providerName
|
||||
Bundle-Vendor: Eclipse Xtext
|
||||
Require-Bundle: org.eclipse.xtext;visibility:=reexport,
|
||||
org.eclipse.xtend.lib,
|
||||
org.eclipse.core.runtime;bundle-version="3.6.0",
|
||||
|
|
4
plugins/org.eclipse.xtext.ide/build.gradle
Normal file
4
plugins/org.eclipse.xtext.ide/build.gradle
Normal file
|
@ -0,0 +1,4 @@
|
|||
dependencies {
|
||||
compile project(':org.eclipse.xtext')
|
||||
compile "io.typefox.lsapi:io.typefox.lsapi.services:$versions.lsapi"
|
||||
}
|
|
@ -2,6 +2,5 @@ source.. = src/,\
|
|||
xtend-gen/
|
||||
bin.includes = META-INF/,\
|
||||
.,\
|
||||
plugin.properties,\
|
||||
about.html
|
||||
src.includes = about.html
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
###############################################################################
|
||||
# Copyright (c) 2008 itemis AG (http://www.itemis.eu) and others.
|
||||
# All rights reserved. This program and the accompanying materials
|
||||
# are made available under the terms of the Eclipse Public License v1.0
|
||||
# which accompanies this distribution, and is available at
|
||||
# http://www.eclipse.org/legal/epl-v10.html
|
||||
#
|
||||
###############################################################################
|
||||
|
||||
pluginName = Xtext IDE Core
|
||||
providerName = Eclipse Xtext
|
|
@ -1,11 +1,10 @@
|
|||
Manifest-Version: 1.0
|
||||
Bundle-ManifestVersion: 2
|
||||
Bundle-Name: %pluginName
|
||||
Bundle-Localization: plugin
|
||||
Bundle-Name: Xtext Utility
|
||||
Bundle-SymbolicName: org.eclipse.xtext.util
|
||||
Bundle-Version: 2.11.0.qualifier
|
||||
Maven-Version: 2.11.0-SNAPSHOT
|
||||
Bundle-Vendor: %providerName
|
||||
Bundle-Vendor: Eclipse Xtext
|
||||
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
|
||||
Export-Package: org.eclipse.xtext.util;
|
||||
uses:="org.eclipse.emf.ecore.resource,
|
||||
|
|
7
plugins/org.eclipse.xtext.util/build.gradle
Normal file
7
plugins/org.eclipse.xtext.util/build.gradle
Normal file
|
@ -0,0 +1,7 @@
|
|||
dependencies {
|
||||
compile "org.eclipse.xtend:org.eclipse.xtend.lib:$versions.xtext"
|
||||
compile "log4j:log4j:$versions.log4j"
|
||||
compile "org.eclipse.emf:org.eclipse.emf.common:$versions.emfCommon"
|
||||
compile "org.eclipse.emf:org.eclipse.emf.ecore:$versions.emfEcore"
|
||||
compile "com.google.inject:guice:$versions.guice"
|
||||
}
|
|
@ -3,6 +3,5 @@ source.. = src/,\
|
|||
output.. = bin/
|
||||
bin.includes = META-INF/,\
|
||||
.,\
|
||||
plugin.properties,\
|
||||
about.html
|
||||
src.includes = about.html
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
###############################################################################
|
||||
# Copyright (c) 2008 itemis AG (http://www.itemis.eu) and others.
|
||||
# All rights reserved. This program and the accompanying materials
|
||||
# are made available under the terms of the Eclipse Public License v1.0
|
||||
# which accompanies this distribution, and is available at
|
||||
# http://www.eclipse.org/legal/epl-v10.html
|
||||
#
|
||||
###############################################################################
|
||||
|
||||
pluginName = Xtext Utility
|
||||
providerName = Eclipse Xtext
|
|
@ -2,10 +2,9 @@ Manifest-Version: 1.0
|
|||
Bundle-ManifestVersion: 2
|
||||
Bundle-SymbolicName: org.eclipse.xtext.xtext.generator;singleton:=true
|
||||
Bundle-Version: 2.11.0.qualifier
|
||||
Bundle-Localization: plugin
|
||||
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
|
||||
Bundle-Name: %pluginName
|
||||
Bundle-Vendor: %providerName
|
||||
Bundle-Name: Xtext Generator 2
|
||||
Bundle-Vendor: Eclipse Xtext
|
||||
Bundle-ActivationPolicy: lazy
|
||||
Require-Bundle: org.eclipse.xtext;x-installation:=greedy,
|
||||
org.eclipse.xtext.util;x-installation:=greedy,
|
||||
|
|
8
plugins/org.eclipse.xtext.xtext.generator/build.gradle
Normal file
8
plugins/org.eclipse.xtext.xtext.generator/build.gradle
Normal file
|
@ -0,0 +1,8 @@
|
|||
dependencies {
|
||||
compile project(':org.eclipse.xtext')
|
||||
compile "org.eclipse.emf:org.eclipse.emf.codegen:$versions.emfEcore"
|
||||
compile "org.eclipse.emf:org.eclipse.emf.codegen.ecore:$versions.emfEcore"
|
||||
compile "org.eclipse.emf:org.eclipse.emf.mwe.utils:$versions.emfMwe"
|
||||
compile "org.eclipse.emf:org.eclipse.emf.mwe2.lib:$versions.emfMwe2"
|
||||
compile "com.ibm.icu:icu4j:$versions.icu"
|
||||
}
|
|
@ -4,6 +4,5 @@ source.. = src/,\
|
|||
output.. = bin/
|
||||
bin.includes = META-INF/,\
|
||||
.,\
|
||||
about.html,\
|
||||
plugin.properties
|
||||
about.html
|
||||
src.includes = about.html
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
pluginName = Xtext Generator 2
|
||||
providerName = Eclipse Xtext
|
3
plugins/org.eclipse.xtext.xtext.wizard/build.gradle
Normal file
3
plugins/org.eclipse.xtext.xtext.wizard/build.gradle
Normal file
|
@ -0,0 +1,3 @@
|
|||
dependencies {
|
||||
compile project(':org.eclipse.xtext')
|
||||
}
|
|
@ -1,11 +1,10 @@
|
|||
Manifest-Version: 1.0
|
||||
Bundle-ManifestVersion: 2
|
||||
Bundle-Name: %pluginName
|
||||
Bundle-Name: Xtext
|
||||
Bundle-SymbolicName: org.eclipse.xtext;singleton:=true
|
||||
Bundle-Version: 2.11.0.qualifier
|
||||
Bundle-ClassPath: .
|
||||
Bundle-Vendor: %providerName
|
||||
Bundle-Localization: plugin
|
||||
Bundle-Vendor: Eclipse Xtext
|
||||
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
|
||||
Export-Package: org.eclipse.xtext,
|
||||
org.eclipse.xtext.build;x-friends:="org.eclipse.xtext.ide,org.eclipse.xtext.junit4,org.eclipse.xtend.core.tests",
|
||||
|
|
|
@ -1,3 +1,23 @@
|
|||
sourceSets.main.java.srcDir 'packrat'
|
||||
|
||||
dependencies {
|
||||
compile project(':plugins:org.eclipse.xtext.smap')
|
||||
}
|
||||
compile project(':org.eclipse.xtext.util')
|
||||
compile project(':org.eclipse.xtext.smap') // TODO eliminate dependency
|
||||
compile "org.eclipse.xtend:org.eclipse.xtend.lib:$versions.xtext"
|
||||
compile "log4j:log4j:$versions.log4j"
|
||||
compile "org.eclipse.equinox:org.eclipse.equinox.common:$versions.equinoxCommon"
|
||||
compile "org.eclipse.emf:org.eclipse.emf.common:$versions.emfCommon"
|
||||
compile "org.eclipse.emf:org.eclipse.emf.ecore.xmi:$versions.emfEcore"
|
||||
compile "com.google.inject:guice:$versions.guice"
|
||||
compile "org.antlr:antlr-runtime:$versions.antlr"
|
||||
optional "org.eclipse.core:org.eclipse.core.runtime:$versions.eclipseCore"
|
||||
optional "org.eclipse.equinox:org.eclipse.equinox.registry:$versions.equinoxRegistry"
|
||||
optional "org.eclipse.emf:org.eclipse.emf.mwe.utils:$versions.emfMwe"
|
||||
optional "org.eclipse.xpand:org.eclipse.xtend:$versions.xpand"
|
||||
optional "org.eclipse.xpand:org.eclipse.xtend.typesystem.emf:$versions.xpand"
|
||||
optional "org.ow2.asm:asm-commons:$versions.asm"
|
||||
}
|
||||
|
||||
sourceSets.main.resources {
|
||||
include 'org/**', 'modeling32.png'
|
||||
}
|
||||
|
|
|
@ -2,7 +2,6 @@ bin.includes = .,\
|
|||
schema/,\
|
||||
META-INF/,\
|
||||
plugin.xml,\
|
||||
plugin.properties,\
|
||||
about.ini,\
|
||||
about.mappings,\
|
||||
about.properties,\
|
||||
|
|
|
@ -1,20 +0,0 @@
|
|||
|
||||
# <copyright>
|
||||
# </copyright>
|
||||
#
|
||||
# $Id: plugin.properties,v 1.5 2010/03/10 14:04:27 sefftinge Exp $
|
||||
|
||||
# ====================================================================
|
||||
# To code developer:
|
||||
# Do NOT change the properties between this line and the
|
||||
# "%%% END OF TRANSLATED PROPERTIES %%%" line.
|
||||
# Make a new property name, append to the end of the file and change
|
||||
# the code to use the new property.
|
||||
# ====================================================================
|
||||
|
||||
# ====================================================================
|
||||
# %%% END OF TRANSLATED PROPERTIES %%%
|
||||
# ====================================================================
|
||||
|
||||
pluginName = Xtext
|
||||
providerName = Eclipse Xtext
|
15
separate-builds/core/build.gradle
Normal file
15
separate-builds/core/build.gradle
Normal file
|
@ -0,0 +1,15 @@
|
|||
subprojects {
|
||||
repositories {
|
||||
jcenter()
|
||||
maven {
|
||||
url 'https://oss.sonatype.org/content/repositories/snapshots'
|
||||
}
|
||||
}
|
||||
|
||||
apply plugin: 'java'
|
||||
apply from: "${rootDir}/gradle/versions.gradle"
|
||||
apply from: "${rootDir}/gradle/eclipse-project-layout.gradle"
|
||||
apply from: "${rootDir}/gradle/java-compiler-settings.gradle"
|
||||
|
||||
group = 'org.eclipse.xtext'
|
||||
}
|
28
separate-builds/core/gradle/eclipse-project-layout.gradle
Normal file
28
separate-builds/core/gradle/eclipse-project-layout.gradle
Normal file
|
@ -0,0 +1,28 @@
|
|||
/*
|
||||
* Since we use the Eclipse Style layout where sources and resources
|
||||
* live in the same folders, we need to make some adjustments to Gradle'
|
||||
* defaults.
|
||||
*/
|
||||
|
||||
def isTestProject = name.endsWith('tests')
|
||||
|
||||
sourceSets {
|
||||
configure(isTestProject? test : main) {
|
||||
java.srcDirs = ['src', 'xtend-gen', 'src-gen', 'emf-gen']
|
||||
resources {
|
||||
srcDirs = ['src', 'src-gen', 'emf-gen', '.']
|
||||
exclude '**/*._trace', '**/*.xtendbin', '**/*.xtend'
|
||||
include 'plugin.xml', 'schema/**', 'about.ini', 'about.mappings', 'about.properties', 'about.html'
|
||||
}
|
||||
}
|
||||
configure(isTestProject? main : test) {
|
||||
java.srcDirs = []
|
||||
resources.srcDirs = []
|
||||
}
|
||||
}
|
||||
|
||||
jar {
|
||||
metaInf {
|
||||
from 'META-INF'
|
||||
}
|
||||
}
|
24
separate-builds/core/gradle/java-compiler-settings.gradle
Normal file
24
separate-builds/core/gradle/java-compiler-settings.gradle
Normal file
|
@ -0,0 +1,24 @@
|
|||
plugins.withType(JavaBasePlugin) {
|
||||
sourceCompatibility = '1.8'
|
||||
}
|
||||
|
||||
tasks.withType(JavaCompile) {
|
||||
options.encoding = 'ISO-8859-1'
|
||||
}
|
||||
|
||||
configurations {
|
||||
optional {
|
||||
description 'Dependencies required at build time, but not exported into meta data'
|
||||
extendsFrom compile
|
||||
}
|
||||
|
||||
/*
|
||||
* Put any unwanted transitive dependencies here, they will be excluded from all projects
|
||||
*/
|
||||
all {
|
||||
exclude group: 'org.antlr', module: 'stringtemplate'
|
||||
exclude module: 'cglib'
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets.main.compileClasspath += [configurations.optional]
|
19
separate-builds/core/gradle/versions.gradle
Normal file
19
separate-builds/core/gradle/versions.gradle
Normal file
|
@ -0,0 +1,19 @@
|
|||
version = '2.11.0-SNAPSHOT'
|
||||
|
||||
ext.versions = [
|
||||
'xtext': version,
|
||||
'lsapi': '0.2.0-SNAPSHOT',
|
||||
'log4j': '1.2.16',
|
||||
'equinoxCommon' : '3.6.0',
|
||||
'equinoxRegistry' : '3.5.0.v20100503',
|
||||
'eclipseCore': '3.6.0.v20100505',
|
||||
'emfCommon': '[2.10.1,3.0[',
|
||||
'emfEcore': '[2.10.2,3.0[',
|
||||
'emfMwe': '1.3.20.201605261059',
|
||||
'emfMwe2': '[2.8.3,2.9[',
|
||||
'xpand': '2.0.0',
|
||||
'guice': '3.0',
|
||||
'antlr': '3.2',
|
||||
'asm': '5.0.1',
|
||||
'icu': '52.1'
|
||||
]
|
13
separate-builds/core/settings.gradle
Normal file
13
separate-builds/core/settings.gradle
Normal file
|
@ -0,0 +1,13 @@
|
|||
rootProject.name = 'xtext-core'
|
||||
|
||||
[
|
||||
'org.eclipse.xtext',
|
||||
'org.eclipse.xtext.ide',
|
||||
'org.eclipse.xtext.util',
|
||||
'org.eclipse.xtext.smap',
|
||||
'org.eclipse.xtext.xtext.generator',
|
||||
'org.eclipse.xtext.xtext.wizard'
|
||||
].each { projectName ->
|
||||
include projectName
|
||||
project(":$projectName").projectDir = file("../../plugins/$projectName")
|
||||
}
|
Loading…
Reference in a new issue