Skip to content
Permalink
Browse files

Removed eclipse stuff from gradle (was giving warnings and completely…

… unused)
  • Loading branch information...
collinsmith committed Jun 24, 2019
1 parent bd67586 commit cc2ea8ba00501e203370db62d36dc6beb8d73c98
Showing with 0 additions and 165 deletions.
  1. +0 −30 android/build.gradle
  2. +0 −5 build.gradle
  3. +0 −4 core/build.gradle
  4. +0 −18 desktop/build.gradle
  5. +0 −18 ds1viewer/build.gradle
  6. +0 −18 mpqlib/build.gradle
  7. +0 −18 mpqviewer/build.gradle
  8. +0 −18 server/build.gradle
  9. +0 −18 tester/build.gradle
  10. +0 −18 tools/build.gradle
@@ -79,36 +79,6 @@ task run(type: Exec) {
def adb = path + "/platform-tools/adb"
commandLine "$adb", 'shell', 'am', 'start', '-n', 'com.riiablo/com.riiablo.AndroidLauncher'
}
// sets up the Android Eclipse project, using the old Ant based build.
eclipse {
// need to specify Java source sets explicitly, SpringSource Gradle Eclipse plugin
// ignores any nodes added in classpath.file.withXml
sourceSets {
main {
java.srcDirs "src", 'gen'
}
}

jdt {
sourceCompatibility = 1.6
targetCompatibility = 1.6
}

classpath {
plusConfigurations += [project.configurations.compile]
containers 'com.android.ide.eclipse.adt.ANDROID_FRAMEWORK', 'com.android.ide.eclipse.adt.LIBRARIES'
}

project {
name = appName + "-android"
natures 'com.android.ide.eclipse.adt.AndroidNature'
buildCommands.clear();
buildCommand "com.android.ide.eclipse.adt.ResourceManagerBuilder"
buildCommand "com.android.ide.eclipse.adt.PreCompilerBuilder"
buildCommand "org.eclipse.jdt.core.javabuilder"
buildCommand "com.android.ide.eclipse.adt.ApkBuilder"
}
}
// sets up the Android Idea project, using the old Ant based build.
idea {
module {
@@ -14,7 +14,6 @@ buildscript {
}

allprojects {
apply plugin: "eclipse"
apply plugin: "idea"

version = '1.0'
@@ -227,7 +226,3 @@ project(":mpqlib") {
compile "com.badlogicgames.gdx:gdx-jnigen:$gdxVersion"
}
}

tasks.eclipse.doLast {
delete ".project"
}
@@ -17,10 +17,6 @@ idea {
}
}

eclipse.project {
name = appName + "-core"
}

task createFlatBuffers(type: FlatBuffers) {
inputDir = file("src/com/riiablo/net/")
outputDir = file("gen/")
@@ -40,21 +40,3 @@ task dist(type: Jar) {
}

dist.dependsOn classes

eclipse {
project {
name = appName + "-desktop"
linkedResource name: 'assets', type: '2', location: 'PARENT-1-PROJECT_LOC/android/assets'
}
}

task afterEclipseImport(description: "Post processing after project generation", group: "IDE") {
doLast {
def classpath = new XmlParser().parse(file(".classpath"))
new Node(classpath, "classpathentry", [ kind: 'src', path: 'assets' ]);
def writer = new FileWriter(file(".classpath"))
def printer = new XmlNodePrinter(new PrintWriter(writer))
printer.setPreserveWhitespace(true)
printer.print(classpath)
}
}
@@ -26,21 +26,3 @@ task dist(type: Jar) {
}

dist.dependsOn classes

eclipse {
project {
name = appName + "-mapbuilder"
linkedResource name: 'assets', type: '2', location: 'PARENT-1-PROJECT_LOC/android/assets'
}
}

task afterEclipseImport(description: "Post processing after project generation", group: "IDE") {
doLast {
def classpath = new XmlParser().parse(file(".classpath"))
new Node(classpath, "classpathentry", [kind: 'src', path: 'assets']);
def writer = new FileWriter(file(".classpath"))
def printer = new XmlNodePrinter(new PrintWriter(writer))
printer.setPreserveWhitespace(true)
printer.print(classpath)
}
}
@@ -26,21 +26,3 @@ task dist(type: Jar) {
}

dist.dependsOn classes

eclipse {
project {
name = appName + "-mapbuilder"
linkedResource name: 'assets', type: '2', location: 'PARENT-1-PROJECT_LOC/android/assets'
}
}

task afterEclipseImport(description: "Post processing after project generation", group: "IDE") {
doLast {
def classpath = new XmlParser().parse(file(".classpath"))
new Node(classpath, "classpathentry", [kind: 'src', path: 'assets']);
def writer = new FileWriter(file(".classpath"))
def printer = new XmlNodePrinter(new PrintWriter(writer))
printer.setPreserveWhitespace(true)
printer.print(classpath)
}
}
@@ -26,21 +26,3 @@ task dist(type: Jar) {
}

dist.dependsOn classes

eclipse {
project {
name = appName + "-mpqviewer"
linkedResource name: 'assets', type: '2', location: 'PARENT-1-PROJECT_LOC/android/assets'
}
}

task afterEclipseImport(description: "Post processing after project generation", group: "IDE") {
doLast {
def classpath = new XmlParser().parse(file(".classpath"))
new Node(classpath, "classpathentry", [ kind: 'src', path: 'assets' ]);
def writer = new FileWriter(file(".classpath"))
def printer = new XmlNodePrinter(new PrintWriter(writer))
printer.setPreserveWhitespace(true)
printer.print(classpath)
}
}
@@ -27,21 +27,3 @@ task dist(type: Jar) {
}

dist.dependsOn classes

eclipse {
project {
name = appName + "-server"
linkedResource name: 'assets', type: '2', location: 'PARENT-1-PROJECT_LOC/android/assets'
}
}

task afterEclipseImport(description: "Post processing after project generation", group: "IDE") {
doLast {
def classpath = new XmlParser().parse(file(".classpath"))
new Node(classpath, "classpathentry", [ kind: 'src', path: 'assets' ]);
def writer = new FileWriter(file(".classpath"))
def printer = new XmlNodePrinter(new PrintWriter(writer))
printer.setPreserveWhitespace(true)
printer.print(classpath)
}
}
@@ -26,21 +26,3 @@ task dist(type: Jar) {
}

dist.dependsOn classes

eclipse {
project {
name = appName + "-mpqviewer"
linkedResource name: 'assets', type: '2', location: 'PARENT-1-PROJECT_LOC/android/assets'
}
}

task afterEclipseImport(description: "Post processing after project generation", group: "IDE") {
doLast {
def classpath = new XmlParser().parse(file(".classpath"))
new Node(classpath, "classpathentry", [ kind: 'src', path: 'assets' ]);
def writer = new FileWriter(file(".classpath"))
def printer = new XmlNodePrinter(new PrintWriter(writer))
printer.setPreserveWhitespace(true)
printer.print(classpath)
}
}
@@ -26,21 +26,3 @@ task dist(type: Jar) {
}

dist.dependsOn classes

eclipse {
project {
name = appName + "-mpqviewer"
linkedResource name: 'assets', type: '2', location: 'PARENT-1-PROJECT_LOC/android/assets'
}
}

task afterEclipseImport(description: "Post processing after project generation", group: "IDE") {
doLast {
def classpath = new XmlParser().parse(file(".classpath"))
new Node(classpath, "classpathentry", [ kind: 'src', path: 'assets' ]);
def writer = new FileWriter(file(".classpath"))
def printer = new XmlNodePrinter(new PrintWriter(writer))
printer.setPreserveWhitespace(true)
printer.print(classpath)
}
}

0 comments on commit cc2ea8b

Please sign in to comment.
You can’t perform that action at this time.