Skip to content

Commit

Permalink
Adds support for Gradle build system for several projects
Browse files Browse the repository at this point in the history
  • Loading branch information
joaobispo committed Mar 16, 2024
1 parent c0d8b23 commit 806fce4
Show file tree
Hide file tree
Showing 44 changed files with 1,035 additions and 29 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ RemoteSystemsTempFiles/
# Custom ignores #
##################

.gradle/
build/

tomJava/
.svn/
sf.eclipse.javacc.prefs
Expand Down
65 changes: 65 additions & 0 deletions LARAC/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
plugins {
id 'distribution'
}

// Java project
apply plugin: 'java'

java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}


// Repositories providers
repositories {
mavenCentral()
}

dependencies {
testImplementation "junit:junit:4.11"

implementation ":CommonsCompressPlus"
implementation ":CommonsLangPlus"
implementation ":SpecsUtils"
implementation ":tdrcLibrary"

implementation ":LaraUtils"
implementation ":LanguageSpecification"
implementation ":WeaverInterface"


implementation group: 'commons-cli', name: 'commons-cli', version: '1.3.1'
implementation group: 'commons-io', name: 'commons-io', version: '2.4'
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.5'
implementation group: 'javax.xml.bind', name: 'jaxb-api', version: '2.3.1'
}

java {
withSourcesJar()
}

// Project sources
sourceSets {
main {
java {
srcDir 'src'
}

resources {
srcDir 'resources'
}
}


test {
java {
srcDir 'test'
}

resources {
srcDir 'resources'
}
}

}
3 changes: 2 additions & 1 deletion LARAC/ivy.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
<dependencies>
<dependency org="commons-cli" name="commons-cli" rev="1.3.1"/>
<dependency org="commons-io" name="commons-io" rev="2.4"/>
<dependency org="org.apache.commons" name="commons-lang3" rev="3.0"/>
<!--<dependency org="org.apache.commons" name="commons-lang3" rev="3.0"/>-->
<dependency org="org.apache.commons" name="commons-lang3" rev="3.5"/>
<!-- XmlBind -->
<dependency org="javax.xml.bind" name="jaxb-api" rev="2.3.1"/>
<!-- <dependency org="javax.xml.bind" name="jaxb-api" rev="2.4.0-b180830.0359"/> -->
Expand Down
10 changes: 10 additions & 0 deletions LARAC/settings.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
rootProject.name = 'LARAC'

includeBuild("../../specs-java-libs/CommonsCompressPlus")
includeBuild("../../specs-java-libs/CommonsLangPlus")
includeBuild("../../specs-java-libs/SpecsUtils")
includeBuild("../../specs-java-libs/tdrcLibrary")

includeBuild("../../lara-framework/LanguageSpecification")
includeBuild("../../lara-framework/LaraUtils")
includeBuild("../../lara-framework/WeaverInterface")
1 change: 1 addition & 0 deletions LARAI/.classpath
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="test-experimental"/>
<classpathentry kind="src" path="src-lara"/>
<classpathentry kind="src" path="test"/>
<classpathentry kind="src" path="resources"/>
Expand Down
77 changes: 77 additions & 0 deletions LARAI/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
plugins {
id 'distribution'
}

// Java project
apply plugin: 'java'

java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}


// Repositories providers
repositories {
mavenCentral()
}

dependencies {
implementation "junit:junit:4.11"

implementation ':CommonsLangPlus'
implementation ':GitPlus'
implementation ':jOptions'
implementation ':JsEngine'
implementation ':SpecsUtils'
implementation ':tdrcLibrary'

implementation ':LanguageSpecification'
implementation ':LaraApi'
implementation ':LARAC'
implementation ':LaraCommonLanguage'
implementation ':LaraLoc'
implementation ':LaraUtils'
implementation ':WeaverInterface'


implementation group: 'commons-cli', name: 'commons-cli', version: '1.3.1'
implementation group: 'org.apache.commons', name: 'commons-exec', version: '1.3'
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.5'
implementation group: 'com.google.code.gson', name: 'gson', version: '2.4'
implementation group: 'com.google.guava', name: 'guava', version: '19.0'
implementation group: 'com.fifesoft', name: 'rsyntaxtextarea', version: '2.5.8'
implementation group: 'com.fifesoft', name: 'autocomplete', version: '2.5.8'
implementation group: 'javax.xml.bind', name: 'jaxb-api', version: '2.3.1'
}

java {
withSourcesJar()
}

// Project sources
sourceSets {
main {
java {
srcDir 'src'
}

resources {
srcDir 'src'
srcDir 'src-lara'
srcDir 'resources'
}
}

test {
java {
srcDir 'test'
}

resources {
srcDir 'src'
srcDir 'src-lara'
srcDir 'resources'
}
}
}
16 changes: 16 additions & 0 deletions LARAI/settings.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
rootProject.name = 'LARAI'

includeBuild("../../specs-java-libs/CommonsLangPlus")
includeBuild("../../specs-java-libs/GitPlus")
includeBuild("../../specs-java-libs/jOptions")
includeBuild("../../specs-java-libs/JsEngine")
includeBuild("../../specs-java-libs/SpecsUtils")
includeBuild("../../specs-java-libs/tdrcLibrary")

includeBuild("../../lara-framework/LanguageSpecification")
includeBuild("../../lara-framework/LaraApi")
includeBuild("../../lara-framework/LARAC")
includeBuild("../../lara-framework/LaraCommonLanguage")
includeBuild("../../lara-framework/LaraLoc")
includeBuild("../../lara-framework/LaraUtils")
includeBuild("../../lara-framework/WeaverInterface")
63 changes: 63 additions & 0 deletions LanguageSpecification/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
plugins {
id 'distribution'
}

// Java project
apply plugin: 'java'

java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}


// Repositories providers
repositories {
mavenCentral()
}

dependencies {
implementation "junit:junit:4.11"

implementation ':SpecsUtils'
implementation ':tdrcLibrary'
implementation ':LaraUtils'


implementation group: 'org.antlr', name: 'antlr4', version: '4.5.2-1'
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.4'
implementation group: 'javax.xml.bind', name: 'jaxb-api', version: '2.3.1'
implementation group: 'com.sun.xml.bind', name: 'jaxb-impl', version: '2.3.1'
implementation group: 'org.glassfish.jaxb', name: 'jaxb-runtime', version: '2.3.1'
implementation group: 'javax.activation', name: 'activation', version: '1.1.1'
}

java {
withSourcesJar()
}

// Project sources
sourceSets {
main {
java {
srcDir 'src'
srcDir 'test' // TODO: There is a dependency in WeaverGenerator to classes in this folder
}

resources {
srcDir 'resources'
}
}


test {
java {
srcDir 'test'
}

resources {
srcDir 'resources'
}
}

}
5 changes: 4 additions & 1 deletion LanguageSpecification/ivy.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@
<!-- XmlBind -->
<!--<dependency org="com.sun.xml.bind" name="jaxb-core" rev="2.3.0.1"/>-->
<dependency org="javax.xml.bind" name="jaxb-api" rev="2.3.1"/>

<dependency org="com.sun.xml.bind" name="jaxb-impl" rev="2.3.1"/>
<!--<dependency org="jakarta.xml.bind" name="jakarta.xml.bind-api" rev="4.0.0"/> -->
<dependency org="org.glassfish.jaxb" name="jaxb-runtime" rev="2.3.1"/>

<!-- <dependency org="com.sun.xml.bind" name="jaxb-impl" rev="2.4.0-b180830.0438" conf="default->master,runtime,compile,default,system,optional"/> -->

<!-- <dependency org="javax.xml.bind" name="jaxb-api" rev="2.4.0-b180830.0359"/> -->
Expand Down
6 changes: 6 additions & 0 deletions LanguageSpecification/settings.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
rootProject.name = 'LanguageSpecification'

includeBuild("../../specs-java-libs/SpecsUtils")
includeBuild("../../specs-java-libs/tdrcLibrary")

includeBuild("../../lara-framework/LaraUtils")
52 changes: 52 additions & 0 deletions LaraApi/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
plugins {
id 'distribution'
}

// Java project
apply plugin: 'java'

java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}


// Repositories providers
repositories {
mavenCentral()
}

dependencies {
testImplementation "junit:junit:4.11"

implementation ':SpecsUtils'
implementation ':CommonsLangPlus'
implementation ':Gprofer'
implementation ':XStreamPlus'
implementation ':LaraUtils'

implementation group: 'io.github.java-diff-utils', name: 'java-diff-utils', version: '4.7'


}

java {
withSourcesJar()
}


// Project sources
sourceSets {
main {
java {
srcDir 'src-java'
}

resources {
srcDir 'src-lara'
srcDir 'src-lara-base'
srcDir 'src-js'
}

}
}
7 changes: 7 additions & 0 deletions LaraApi/settings.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
rootProject.name = 'LaraApi'

includeBuild("../../specs-java-libs/SpecsUtils")
includeBuild("../../specs-java-libs/CommonsLangPlus")
includeBuild("../../specs-java-libs/Gprofer")
includeBuild("../../specs-java-libs/XStreamPlus")
includeBuild("../../lara-framework/LaraUtils")
1 change: 1 addition & 0 deletions LaraCommonLanguage/.classpath
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
<classpathentry combineaccessrules="false" kind="src" path="/SpecsUtils"/>
<classpathentry combineaccessrules="false" kind="src" path="/jOptions"/>
<classpathentry combineaccessrules="false" kind="src" path="/LanguageSpecification"/>
<classpathentry kind="con" path="org.apache.ivyde.eclipse.cpcontainer.IVYDE_CONTAINER/?project=LaraCommonLanguage&amp;ivyXmlPath=ivy.xml&amp;confs=*"/>
<classpathentry kind="output" path="bin"/>
</classpath>
1 change: 1 addition & 0 deletions LaraCommonLanguage/.project
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.apache.ivyde.eclipse.ivynature</nature>
</natures>
<filteredResources>
<filter>
Expand Down
Loading

0 comments on commit 806fce4

Please sign in to comment.