69 lines
1.8 KiB
Groovy
69 lines
1.8 KiB
Groovy
apply plugin: 'java'
|
|
apply plugin: 'eclipse'
|
|
|
|
tasks.withType(JavaCompile) {
|
|
options.encoding = 'UTF-8'
|
|
}
|
|
|
|
eclipse {
|
|
classpath {
|
|
downloadJavadoc = true
|
|
downloadSources = true
|
|
}
|
|
}
|
|
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = JavaLanguageVersion.of(19)
|
|
repositories {
|
|
mavenCentral()
|
|
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
|
|
maven {
|
|
url = "https://maven.speiger.com/repository/main"
|
|
}
|
|
}
|
|
|
|
task srcJar(type: Jar) {
|
|
from sourceSets.main.allSource
|
|
archiveClassifier = 'sources'
|
|
from {
|
|
configurations.compile.collect {
|
|
it.isDirectory() ? it : zipTree(it)
|
|
}
|
|
}
|
|
}
|
|
|
|
artifacts {
|
|
archives srcJar
|
|
}
|
|
|
|
jar{
|
|
from {
|
|
configurations.compile.collect {
|
|
it.isDirectory() ? it : zipTree(it)
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
//LWJGL 3
|
|
implementation platform("org.lwjgl:lwjgl-bom:$lwjglVersion")
|
|
|
|
implementation "org.lwjgl:lwjgl"
|
|
implementation "org.lwjgl:lwjgl-glfw"
|
|
implementation "org.lwjgl:lwjgl-jemalloc"
|
|
implementation "org.lwjgl:lwjgl-openal"
|
|
implementation "org.lwjgl:lwjgl-opengl"
|
|
implementation "org.lwjgl:lwjgl-stb"
|
|
implementation "org.lwjgl:lwjgl-nfd"
|
|
implementation "org.lwjgl:lwjgl::$lwjglNatives"
|
|
implementation "org.lwjgl:lwjgl-glfw::$lwjglNatives"
|
|
implementation "org.lwjgl:lwjgl-jemalloc::$lwjglNatives"
|
|
implementation "org.lwjgl:lwjgl-openal::$lwjglNatives"
|
|
implementation "org.lwjgl:lwjgl-opengl::$lwjglNatives"
|
|
implementation "org.lwjgl:lwjgl-stb::$lwjglNatives"
|
|
implementation "org.lwjgl:lwjgl-nfd::$lwjglNatives"
|
|
|
|
//Gson
|
|
implementation 'com.google.code.gson:gson:2.8.6'
|
|
|
|
//Primitive Collections
|
|
implementation 'de.speiger:Primitive-Collections:0.7.0'
|
|
} |