57 lines
1.5 KiB
Groovy
57 lines
1.5 KiB
Groovy
plugins {
|
|
id 'org.springframework.boot' version "$springBootVersion"
|
|
id 'io.spring.dependency-management' version "$springDependencyManagementVersion"
|
|
id 'java'
|
|
id 'application'
|
|
}
|
|
|
|
group 'com.bartlomiejpluta.base'
|
|
version 'unspecified'
|
|
|
|
import org.gradle.internal.os.OperatingSystem
|
|
|
|
switch (OperatingSystem.current()) {
|
|
case OperatingSystem.LINUX:
|
|
def osArch = System.getProperty("os.arch")
|
|
project.ext.lwjglNatives = osArch.startsWith("arm") || osArch.startsWith("aarch64")
|
|
? "natives-linux-${osArch.contains("64") || osArch.startsWith("armv8") ? "arm64" : "arm32"}"
|
|
: "natives-linux"
|
|
break
|
|
case OperatingSystem.MAC_OS:
|
|
project.ext.lwjglNatives = "natives-macos"
|
|
break
|
|
case OperatingSystem.WINDOWS:
|
|
project.ext.lwjglNatives = System.getProperty("os.arch").contains("64") ? "natives-windows" : "natives-windows-x86"
|
|
break
|
|
}
|
|
|
|
configurations {
|
|
compileOnly {
|
|
extendsFrom annotationProcessor
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
jcenter()
|
|
}
|
|
|
|
dependencies {
|
|
implementation project(":engine")
|
|
implementation project(":proto")
|
|
implementation project(":api")
|
|
|
|
compileOnly 'org.projectlombok:lombok'
|
|
annotationProcessor 'org.projectlombok:lombok'
|
|
}
|
|
|
|
application {
|
|
// Define the main class for the application.
|
|
mainClass = 'com.bartlomiejpluta.base.game.App'
|
|
}
|
|
|
|
build {
|
|
dependsOn(":engine:build")
|
|
dependsOn(":proto:build")
|
|
}
|