[Build] Cleanup gradle
This commit is contained in:
1 parent
d8f869b0cb
commit
39d1513e91
2 files changed
+1
-15
No files matched your search
@@ -11,7 +11,7 @@ sourceCompatibility = 1.8
|
||||
|
||||
dependencies {
|
||||
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.5.2'
|
||||
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.5.2")
|
||||
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.5.2'
|
||||
}
|
||||
|
||||
test {
|
||||
|
||||
@@ -28,23 +28,9 @@ dependencies {
|
||||
implementation 'org.lwjgl:lwjgl-glfw'
|
||||
implementation 'org.lwjgl:lwjgl-opengl'
|
||||
|
||||
testRuntimeOnly "org.lwjgl:lwjgl::$lwjglNatives"
|
||||
testRuntimeOnly "org.lwjgl:lwjgl-glfw::$lwjglNatives"
|
||||
testRuntimeOnly "org.lwjgl:lwjgl-opengl::$lwjglNatives"
|
||||
|
||||
implementation project(':imgui-binding')
|
||||
}
|
||||
|
||||
task startExample(type: JavaExec, dependsOn: build) {
|
||||
main = 'ImGuiGlfwExample'
|
||||
classpath = sourceSets.test.runtimeClasspath
|
||||
jvmArgs = ["-Djava.library.path=${System.getProperty('libPath', '../bin')}"]
|
||||
|
||||
if (OperatingSystem.current().isMacOsX()) {
|
||||
jvmArgs += ['-XstartOnFirstThread', '-Djava.awt.headless=true']
|
||||
}
|
||||
}
|
||||
|
||||
task sourcesJar(type: Jar, dependsOn: classes) {
|
||||
archiveClassifier.set('sources')
|
||||
from sourceSets.main.allSource
|
||||
|
||||
Reference in new issue
Block a user