Skip to content

Commit

Permalink
Adds Gradle build files for some projects
Browse files Browse the repository at this point in the history
  • Loading branch information
joaobispo committed Mar 7, 2024
1 parent 636a665 commit ab2e12e
Show file tree
Hide file tree
Showing 8 changed files with 187 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ Matisse.lara

#output/
.idea/
.gradle/
gradle/
build/
gradlew
gradlew.bat

### Default folder for executing applications
**/run/**
#!**/run/dummy.txt
Expand Down
57 changes: 57 additions & 0 deletions ClangAstParser/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
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 ":ClavaAst"
implementation ":CommonsLangPlus"
implementation ":jOptions"
implementation ":SpecsUtils"

implementation group: 'com.google.guava', name: 'guava', version: '19.0'
}

java {
withSourcesJar()
}

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

resources {
srcDir 'resources'
}
}


test {
java {
srcDir 'test'
}

resources {
srcDir 'resources'
}
}

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

includeBuild("../../clava/ClavaAst")
includeBuild("../../specs-java-libs/CommonsLangPlus")
includeBuild("../../specs-java-libs/jOptions")
includeBuild("../../specs-java-libs/SpecsUtils")
46 changes: 46 additions & 0 deletions ClavaAst/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
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 ':GitPlus'
implementation ':GsonPlus'
implementation ':jOptions'
implementation ':SpecsUtils'
implementation ':SymjaPlus'
implementation ':tdrcLibrary'

implementation group: 'com.google.guava', name: 'guava', version: '19.0'
implementation group: 'com.google.code.gson', name: 'gson', version: '2.4'

}

java {
withSourcesJar()
}

// Project sources
sourceSets {
main {
java {
srcDir 'src'
}
}
}
8 changes: 8 additions & 0 deletions ClavaAst/settings.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
rootProject.name = 'ClavaAst'

includeBuild("../../specs-java-libs/GitPlus")
includeBuild("../../specs-java-libs/GsonPlus")
includeBuild("../../specs-java-libs/jOptions")
includeBuild("../../specs-java-libs/SpecsUtils")
includeBuild("../../specs-java-libs/SymjaPlus")
includeBuild("../../specs-java-libs/tdrcLibrary")
5 changes: 5 additions & 0 deletions ClavaWeaver/test/pt/up/fe/specs/cxxweaver/tests/CudaTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,9 @@ public void testCudaMatrixMul() {
public void testCudaQuery() {
newTester().test("CudaQuery.lara", "sample.cu");
}

@Test
public void testCudaWscad2023() {
newTester().test("CudaWSCAD2023.js", "wscad2023.cu");
}
}
54 changes: 54 additions & 0 deletions TranslationUnitPatcher/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
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 ':ClangAstParser'
implementation ':jOptions'
implementation ':SpecsUtils'
}

java {
withSourcesJar()
}

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

resources {
srcDir 'resources'
}
}


test {
java {
srcDir 'test'
}

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

includeBuild("../../clava/ClangAstParser")
includeBuild("../../specs-java-libs/jOptions")
includeBuild("../../specs-java-libs/SpecsUtils")

0 comments on commit ab2e12e

Please sign in to comment.