-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
49 lines (39 loc) · 1.13 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import jython.JythonTask
plugins {
id 'java'
id 'java-library'
id 'application'
id("com.github.rzabini.gradle-jython") version "1.1.0"
}
group = 'io.github.xypercode'
version = '1.0.0'
repositories {
mavenCentral()
maven {
url "https://jitpack.io/"
}
}
application {
mainClass = "qbubbles.Launcher"
}
afterEvaluate {
tasks.register('testJython', JythonTask) {
script file('src/main/python/main.py')
classpath = sourceSets.main.compileClasspath
jvmArgs "-Dpython.import.site=false"
environment(["python.classpath": classpath.files.join(File.pathSeparator)])
}
}
dependencies {
testImplementation platform('org.junit:junit-bom:5.9.1')
testImplementation 'org.junit.jupiter:junit-jupiter'
implementation api("org.python:jython:2.7.3")
// LibGDX
implementation "com.badlogicgames.gdx:gdx:1.12.1"
implementation "com.badlogicgames.gdx:gdx-backend-lwjgl3:1.12.1"
implementation "com.badlogicgames.gdx:gdx-platform:1.12.1:natives-desktop"
implementation "space.earlygrey:shapedrawer:$shapedrawerVersion"
}
test {
useJUnitPlatform()
}