Skip to content

Commit 948e985

Browse files
committed
Remove gretty plugin
1 parent 1c7d1d7 commit 948e985

File tree

8 files changed

+4
-145
lines changed

8 files changed

+4
-145
lines changed

.run/basic_run_web.run.xml

Lines changed: 0 additions & 27 deletions
This file was deleted.

.run/freetype_run_web.run.xml

Lines changed: 0 additions & 27 deletions
This file was deleted.

.run/gdx_tests_run_web.run.xml

Lines changed: 0 additions & 27 deletions
This file was deleted.
Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
plugins {
2-
id("org.gretty") version("4.1.10")
3-
}
4-
5-
project.extra["webAppDir"] = File(projectDir, "build/dist/webapp")
6-
gretty {
7-
contextPath = "/"
8-
}
9-
101
dependencies {
112
implementation("com.badlogicgames.gdx:gdx:${LibExt.gdxVersion}")
123
// implementation("com.badlogicgames.gdx:gdx:${LibExt.gdxVersion}:sources")
@@ -22,13 +13,4 @@ tasks.register<JavaExec>("basic_build_web") {
2213
description = "Build basic example"
2314
mainClass.set(mainClassName)
2415
classpath = sourceSets["main"].runtimeClasspath
25-
}
26-
27-
tasks.register("basic_run_web") {
28-
group = "examples-teavm"
29-
description = "Run basic example"
30-
val list = listOf("basic_build_web", "jettyRun")
31-
dependsOn(list)
32-
33-
tasks.findByName("jettyRun")?.mustRunAfter("basic_build_web")
3416
}

examples/basic/teavm/src/main/java/BuildTeaVMTestDemo.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@
22
import com.github.xpenatan.gdx.teavm.backends.shared.config.compiler.TeaCompiler;
33
import com.github.xpenatan.gdx.teavm.backends.web.config.backend.TeaWebBackend;
44
import java.io.File;
5-
import java.io.IOException;
65
import org.teavm.vm.TeaVMOptimizationLevel;
76

87
public class BuildTeaVMTestDemo {
98

10-
public static void main(String[] args) throws IOException {
9+
public static void main(String[] args) {
1110
AssetFileHandle assetsPath = new AssetFileHandle("../assets");
12-
new TeaCompiler(new TeaWebBackend().setStartJettyAfterBuild(false))
11+
new TeaCompiler(new TeaWebBackend().setStartJettyAfterBuild(true))
1312
.addAssets(assetsPath)
1413
.setOptimizationLevel(TeaVMOptimizationLevel.SIMPLE)
1514
.setMainClass(TestWebLauncher.class.getName())
Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
plugins {
2-
id("org.gretty") version("4.1.10")
3-
}
4-
5-
project.extra["webAppDir"] = File(projectDir, "build/dist/webapp")
6-
gretty {
7-
contextPath = "/"
8-
}
9-
101
//project.ext.assetsDir = new File("../desktop/assets")
112

123
dependencies {
@@ -25,17 +16,4 @@ tasks.register<JavaExec>("freetype_build_web") {
2516
description = "Build teavm FreeType example"
2617
mainClass.set(mainClassName)
2718
classpath = sourceSets["main"].runtimeClasspath
28-
}
29-
30-
tasks.register("freetype_run_web") {
31-
group = "examples-teavm"
32-
description = "Run FreeType example"
33-
val list = arrayOf(
34-
"clean",
35-
"freetype_build_web",
36-
"jettyRun"
37-
)
38-
dependsOn(list)
39-
tasks.findByName("freetype_build_web")?.mustRunAfter("clean")
40-
tasks.findByName("jettyRun")?.mustRunAfter("freetype_build_web")
4119
}

examples/freetype/teavm/src/main/java/BuildFreetypeTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@
22
import com.github.xpenatan.gdx.teavm.backends.shared.config.compiler.TeaCompiler;
33
import com.github.xpenatan.gdx.teavm.backends.web.config.backend.TeaWebBackend;
44
import java.io.File;
5-
import java.io.IOException;
65
import org.teavm.vm.TeaVMOptimizationLevel;
76

87
public class BuildFreetypeTest {
98

10-
public static void main(String[] args) throws IOException {
11-
new TeaCompiler(new TeaWebBackend())
9+
public static void main(String[] args) {
10+
new TeaCompiler(new TeaWebBackend().setStartJettyAfterBuild(true))
1211
.addAssets(new AssetFileHandle("../desktop/assets"))
1312
.setOptimizationLevel(TeaVMOptimizationLevel.SIMPLE)
1413
.setMainClass(FreetypeTestLauncher.class.getName())
Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
plugins {
2-
id("org.gretty") version("4.1.10")
3-
}
4-
5-
project.extra["webAppDir"] = File(projectDir, "build/dist/webapp")
6-
gretty {
7-
contextPath = "/"
8-
}
9-
101
dependencies {
112
implementation("com.badlogicgames.gdx:gdx:${LibExt.gdxVersion}")
123
implementation(project(":examples:gdx-tests:core"))
@@ -23,13 +14,4 @@ tasks.register<JavaExec>("gdx_tests_build_web") {
2314
mainClass.set(mainClassName)
2415
args = mutableListOf(LibExt.gdxTestsAssetsPath)
2516
classpath = sourceSets["main"].runtimeClasspath
26-
}
27-
28-
tasks.register("gdx_tests_run_web") {
29-
group = "examples-teavm"
30-
description = "Run gdx-tests teavm app"
31-
val list = listOf("gdx_tests_build_web", "jettyRun")
32-
dependsOn(list)
33-
34-
tasks.findByName("jettyRun")?.mustRunAfter("gdx_tests_build_web")
3517
}

0 commit comments

Comments
 (0)