From 4a31927b00b5bd3199f304812ebd1293c4d9625e Mon Sep 17 00:00:00 2001 From: Sungho Lee Date: Mon, 27 Nov 2017 17:34:48 +0900 Subject: [PATCH] Gradle build scripts --- com.ibm.wala.cast.java/build.gradle | 35 ++++++++++++++++ .../build.gradle | 36 ++++++++++++++++ com.ibm.wala.cast.js.rhino.test/build.gradle | 33 +++++++++++++++ com.ibm.wala.cast.js.rhino/build.gradle | 33 +++++++++++++++ com.ibm.wala.cast.js.test/build.gradle | 32 +++++++++++++++ com.ibm.wala.cast.js/build.gradle | 34 +++++++++++++++ com.ibm.wala.cast.test/build.gradle | 28 +++++++++++++ com.ibm.wala.cast/build.gradle | 33 +++++++++++++++ com.ibm.wala.core.tests/build.gradle | 41 +++++++++++++++++++ com.ibm.wala.core/build.gradle | 26 ++++++++++++ com.ibm.wala.dalvik/build.gradle | 36 ++++++++++++++++ com.ibm.wala.shrike/build.gradle | 25 +++++++++++ com.ibm.wala.util/build.gradle | 21 ++++++++++ settings.gradle | 1 + 14 files changed, 414 insertions(+) create mode 100644 com.ibm.wala.cast.java/build.gradle create mode 100644 com.ibm.wala.cast.js.html.nu_validator/build.gradle create mode 100644 com.ibm.wala.cast.js.rhino.test/build.gradle create mode 100644 com.ibm.wala.cast.js.rhino/build.gradle create mode 100644 com.ibm.wala.cast.js.test/build.gradle create mode 100644 com.ibm.wala.cast.js/build.gradle create mode 100644 com.ibm.wala.cast.test/build.gradle create mode 100644 com.ibm.wala.cast/build.gradle create mode 100644 com.ibm.wala.core.tests/build.gradle create mode 100644 com.ibm.wala.core/build.gradle create mode 100644 com.ibm.wala.dalvik/build.gradle create mode 100644 com.ibm.wala.shrike/build.gradle create mode 100644 com.ibm.wala.util/build.gradle create mode 100644 settings.gradle diff --git a/com.ibm.wala.cast.java/build.gradle b/com.ibm.wala.cast.java/build.gradle new file mode 100644 index 000000000..b05f12d3a --- /dev/null +++ b/com.ibm.wala.cast.java/build.gradle @@ -0,0 +1,35 @@ +apply plugin: 'java' + +repositories { + mavenCentral() + maven { + url "https://repo.eclipse.org/content/groups/releases/" + } +} + + + +sourceSets { + main { + java { + srcDir 'src' + } + } + test { + java { + srcDir 'test' + } + } +} + + +dependencies { + compile project(':com.ibm.wala.cast') + compile project(':com.ibm.wala.core') + compile project(':com.ibm.wala.shrike') + compile project(':com.ibm.wala.util') + // https://mvnrepository.com/artifact/org.eclipse.core/org.eclipse.core.runtime + compile group: 'org.eclipse.core', name: 'org.eclipse.core.runtime', version: '3.10.0.v20140318-2214' + // https://mvnrepository.com/artifact/org.osgi/org.osgi.core + compile group: 'org.osgi', name: 'org.osgi.core', version: '4.2.0' +} \ No newline at end of file diff --git a/com.ibm.wala.cast.js.html.nu_validator/build.gradle b/com.ibm.wala.cast.js.html.nu_validator/build.gradle new file mode 100644 index 000000000..d99bf8968 --- /dev/null +++ b/com.ibm.wala.cast.js.html.nu_validator/build.gradle @@ -0,0 +1,36 @@ +apply plugin: 'java' + +repositories { + mavenCentral() + maven { + url "https://repo.eclipse.org/content/groups/releases/" + } +} + + + +sourceSets { + main { + java { + srcDir 'src' + } + } + test { + java { + srcDir 'test' + } + } +} + + +dependencies { + compile project(':com.ibm.wala.util') + compile project(':com.ibm.wala.cast') + compile project(':com.ibm.wala.cast.js') + compile project(':com.ibm.wala.cast.js.rhino.test') + compile project(':com.ibm.wala.cast.test') + compile project(':com.ibm.wala.cast.js.test') + compile project(':com.ibm.wala.core.tests') + // https://mvnrepository.com/artifact/nu.validator.htmlparser/htmlparser + compile group: 'nu.validator.htmlparser', name: 'htmlparser', version: '1.4' +} \ No newline at end of file diff --git a/com.ibm.wala.cast.js.rhino.test/build.gradle b/com.ibm.wala.cast.js.rhino.test/build.gradle new file mode 100644 index 000000000..e4b40c0b7 --- /dev/null +++ b/com.ibm.wala.cast.js.rhino.test/build.gradle @@ -0,0 +1,33 @@ +apply plugin: 'java' + +repositories { + mavenCentral() +} + + + +sourceSets { + main { + java { + srcDir 'src' + } + } + test { + java { + srcDir 'test' + } + } +} + + +dependencies { + compile project(':com.ibm.wala.cast.js.rhino') + compile project(':com.ibm.wala.shrike') + compile project(':com.ibm.wala.util') + compile project(':com.ibm.wala.cast') + compile project(':com.ibm.wala.core') + compile project(':com.ibm.wala.core.tests') + compile project(':com.ibm.wala.cast.js') + compile project(':com.ibm.wala.cast.js.test') + compile project(':com.ibm.wala.cast.test') +} \ No newline at end of file diff --git a/com.ibm.wala.cast.js.rhino/build.gradle b/com.ibm.wala.cast.js.rhino/build.gradle new file mode 100644 index 000000000..0db1d01f8 --- /dev/null +++ b/com.ibm.wala.cast.js.rhino/build.gradle @@ -0,0 +1,33 @@ +apply plugin: 'java' + +repositories { + mavenCentral() + maven { + url "https://repo.eclipse.org/content/groups/releases/" + } +} + + + +sourceSets { + main { + java { + srcDir 'source' + } + } + test { + java { + srcDir 'test' + } + } +} + + +dependencies { + compile project(':com.ibm.wala.util') + compile project(':com.ibm.wala.cast') + compile project(':com.ibm.wala.core') + compile project(':com.ibm.wala.cast.js') + // https://mvnrepository.com/artifact/org.mozilla/rhino + compile group: 'org.mozilla', name: 'rhino', version: '1.7.7.1' +} \ No newline at end of file diff --git a/com.ibm.wala.cast.js.test/build.gradle b/com.ibm.wala.cast.js.test/build.gradle new file mode 100644 index 000000000..9a96e417c --- /dev/null +++ b/com.ibm.wala.cast.js.test/build.gradle @@ -0,0 +1,32 @@ +apply plugin: 'java' + +repositories { + mavenCentral() +} + + + +sourceSets { + main { + java { + srcDir 'src' + } + } + test { + java { + srcDir 'test' + } + } +} + + +dependencies { + compile project(':com.ibm.wala.cast.js.rhino') + compile project(':com.ibm.wala.util') + compile project(':com.ibm.wala.cast') + compile project(':com.ibm.wala.core') + compile project(':com.ibm.wala.cast.test') + compile project(':com.ibm.wala.core.tests') + compile project(':com.ibm.wala.cast.js') + compile project(':com.ibm.wala.shrike') +} \ No newline at end of file diff --git a/com.ibm.wala.cast.js/build.gradle b/com.ibm.wala.cast.js/build.gradle new file mode 100644 index 000000000..7246f1581 --- /dev/null +++ b/com.ibm.wala.cast.js/build.gradle @@ -0,0 +1,34 @@ +apply plugin: 'java' + +repositories { + mavenCentral() + maven { + url "https://repo.eclipse.org/content/groups/releases/" + } +} + + + +sourceSets { + main { + java { + srcDir 'source' + } + } + test { + java { + srcDir 'test' + } + } +} + + +dependencies { + compile project(':com.ibm.wala.util') + compile project(':com.ibm.wala.core') + compile project(':com.ibm.wala.shrike') + compile project(':com.ibm.wala.core.tests') + compile project(':com.ibm.wala.cast') + // https://mvnrepository.com/artifact/net.htmlparser.jericho/jericho-html + compile group: 'net.htmlparser.jericho', name: 'jericho-html', version: '3.2' +} \ No newline at end of file diff --git a/com.ibm.wala.cast.test/build.gradle b/com.ibm.wala.cast.test/build.gradle new file mode 100644 index 000000000..047edc7f1 --- /dev/null +++ b/com.ibm.wala.cast.test/build.gradle @@ -0,0 +1,28 @@ +apply plugin: 'java' + +repositories { + mavenCentral() +} + + + +sourceSets { + main { + java { + srcDir 'src' + } + } + test { + java { + srcDir 'test' + } + } +} + + +dependencies { + compile project(':com.ibm.wala.cast') + compile project(':com.ibm.wala.core') + compile project(':com.ibm.wala.core.tests') + compile project(':com.ibm.wala.util') +} \ No newline at end of file diff --git a/com.ibm.wala.cast/build.gradle b/com.ibm.wala.cast/build.gradle new file mode 100644 index 000000000..f16c73aab --- /dev/null +++ b/com.ibm.wala.cast/build.gradle @@ -0,0 +1,33 @@ +apply plugin: 'java' + +repositories { + mavenCentral() + maven { + url "https://repo.eclipse.org/content/groups/releases/" + } +} + + + +sourceSets { + main { + java { + srcDir 'source' + } + } + test { + java { + srcDir 'test' + } + } +} + + +dependencies { + compile project(':com.ibm.wala.util') + compile project(':com.ibm.wala.shrike') + compile project(':com.ibm.wala.core') + compile project(':com.ibm.wala.core.tests') + // https://mvnrepository.com/artifact/commons-io/commons-io + compile group: 'commons-io', name: 'commons-io', version: '2.4' +} \ No newline at end of file diff --git a/com.ibm.wala.core.tests/build.gradle b/com.ibm.wala.core.tests/build.gradle new file mode 100644 index 000000000..7f224034c --- /dev/null +++ b/com.ibm.wala.core.tests/build.gradle @@ -0,0 +1,41 @@ +apply plugin: 'java' + +repositories { + mavenCentral() + maven { + url "https://repo.eclipse.org/content/groups/releases/" + } +} + + + +sourceSets { + main { + java { + srcDir 'src' + } + } + test { + java { + srcDir 'test' + } + } +} + + +dependencies { + compile project(':com.ibm.wala.shrike') + compile project(':com.ibm.wala.util') + compile project(':com.ibm.wala.core') + + // https://mvnrepository.com/artifact/org.hamcrest/java-hamcrest + compile group: 'org.hamcrest', name: 'java-hamcrest', version: '2.0.0.0' + // https://mvnrepository.com/artifact/junit/junit + compile group: 'junit', name: 'junit', version: '4.11' + // https://mvnrepository.com/artifact/org.apache.ant/ant + compile group: 'org.apache.ant', name: 'ant', version: '1.8.2' + // https://mvnrepository.com/artifact/org.eclipse.core/org.eclipse.core.runtime + compile group: 'org.eclipse.core', name: 'org.eclipse.core.runtime', version: '3.10.0.v20140318-2214' + // https://mvnrepository.com/artifact/org.osgi/org.osgi.core + compile group: 'org.osgi', name: 'org.osgi.core', version: '4.2.0' +} \ No newline at end of file diff --git a/com.ibm.wala.core/build.gradle b/com.ibm.wala.core/build.gradle new file mode 100644 index 000000000..b56c8af66 --- /dev/null +++ b/com.ibm.wala.core/build.gradle @@ -0,0 +1,26 @@ +apply plugin: 'java' + +repositories { + mavenCentral() +} + + + +sourceSets { + main { + java { + srcDir 'src' + } + } + test { + java { + srcDir 'test' + } + } +} + + +dependencies { + compile project(':com.ibm.wala.util') + compile project(':com.ibm.wala.shrike') +} \ No newline at end of file diff --git a/com.ibm.wala.dalvik/build.gradle b/com.ibm.wala.dalvik/build.gradle new file mode 100644 index 000000000..57070e216 --- /dev/null +++ b/com.ibm.wala.dalvik/build.gradle @@ -0,0 +1,36 @@ +apply plugin: 'java' + +repositories { + mavenCentral() + maven { + url "https://repo.eclipse.org/content/groups/releases/" + } +} + + + +sourceSets { + main { + java { + srcDir 'src' + } + } + test { + java { + srcDir 'test' + } + } +} + + +dependencies { + compile project(':com.ibm.wala.util') + compile project(':com.ibm.wala.shrike') + compile project(':com.ibm.wala.core') + compile project(':com.ibm.wala.cast') + //compile files('libs/dexlib-1.3.4-dev.jar') + // https://mvnrepository.com/artifact/org.slf4j/slf4j-api + // https://mvnrepository.com/artifact/org.smali/dexlib2 + compile group: 'org.smali', name: 'dexlib2', version: '2.2.1' + compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.2' +} \ No newline at end of file diff --git a/com.ibm.wala.shrike/build.gradle b/com.ibm.wala.shrike/build.gradle new file mode 100644 index 000000000..e9a6fb0f3 --- /dev/null +++ b/com.ibm.wala.shrike/build.gradle @@ -0,0 +1,25 @@ +apply plugin: 'java' + +repositories { + mavenCentral() +} + + + +sourceSets { + main { + java { + srcDir 'src' + } + } + test { + java { + srcDir 'test' + } + } +} + + +dependencies { + compile project(':com.ibm.wala.util') +} \ No newline at end of file diff --git a/com.ibm.wala.util/build.gradle b/com.ibm.wala.util/build.gradle new file mode 100644 index 000000000..919944665 --- /dev/null +++ b/com.ibm.wala.util/build.gradle @@ -0,0 +1,21 @@ +apply plugin: 'java' + +repositories { + mavenCentral() +} + + + +sourceSets { + main { + java { + srcDir 'src' + } + } + test { + java { + srcDir 'test' + } + } +} + diff --git a/settings.gradle b/settings.gradle new file mode 100644 index 000000000..1b2c65ef1 --- /dev/null +++ b/settings.gradle @@ -0,0 +1 @@ +include 'com.ibm.wala.cast', 'com.ibm.wala.cast.test', 'com.ibm.wala.cast.java', 'com.ibm.wala.core', 'com.ibm.wala.cast.java.test', 'com.ibm.wala.core.testdata', 'com.ibm.wala.cast.java.test.data', 'com.ibm.wala.core.tests', 'com.ibm.wala.cast.js', 'com.ibm.wala.dalvik', 'com.ibm.wala.cast.js.html.nu_validator', 'com.ibm.wala.shrike', 'com.ibm.wala.cast.js.rhino', 'com.ibm.wala.tests-feature', 'com.ibm.wala.cast.js.rhino.test', 'com.ibm.wala.tests.ide-feature', 'com.ibm.wala.cast.js.test', 'com.ibm.wala.util', 'com.ibm.wala-feature', 'com.ibm.wala.cast.js.test.data'