Skip to content

Commit

Permalink
refs #1: fix lwjgl target version
Browse files Browse the repository at this point in the history
  • Loading branch information
redrezo committed Feb 8, 2021
1 parent c42325e commit e80ed60
Showing 1 changed file with 77 additions and 76 deletions.
153 changes: 77 additions & 76 deletions org.eclipse.fx.drift.samples.lwjgl/build.gradle
Original file line number Diff line number Diff line change
@@ -1,76 +1,77 @@
plugins {
id 'java-library'
id "biz.aQute.bnd.builder"
id 'eclipse'

id 'org.openjfx.javafxplugin'

}

java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}

def isJava11() {
true
}

if (isJava11()) {

javafx {
version = "11.0.2"
modules = [ 'javafx.controls' ]
}

}


project.ext.lwjglVersion = '3.2.0'

import org.gradle.internal.os.OperatingSystem

switch (OperatingSystem.current()) {
case OperatingSystem.LINUX:
project.ext.lwjglNatives = "natives-linux"
break
case OperatingSystem.MAC_OS:
project.ext.lwjglNatives = "natives-macos"
break
case OperatingSystem.WINDOWS:
project.ext.lwjglNatives = "natives-windows"
break
}

dependencies {
api 'org.eclipse.fx:org.eclipse.fx.drift:999.0.0-SNAPSHOT'
api project(':org.eclipse.fx.drift.samples')

api 'org.osgi:org.osgi.service.component.annotations:1.3.0'

implementation "org.lwjgl:lwjgl:$lwjglVersion"
implementation "org.lwjgl:lwjgl-assimp:$lwjglVersion"
implementation "org.lwjgl:lwjgl-opengl:$lwjglVersion"
runtimeOnly "org.lwjgl:lwjgl:$lwjglVersion:$lwjglNatives"
runtimeOnly "org.lwjgl:lwjgl-assimp:$lwjglVersion:$lwjglNatives"
runtimeOnly "org.lwjgl:lwjgl-opengl:$lwjglVersion:$lwjglNatives"



implementation 'org.joml:joml:1.9.22'

/*
implementation "org.lwjgl.osgi:org.lwjgl.lwjgl:$lwjglVersion"
implementation "org.lwjgl.osgi:org.lwjgl.assimp:$lwjglVersion"
implementation "org.lwjgl.osgi:org.lwjgl.opengl:$lwjglVersion"
*/

}

jar {
manifest {
//attributes('Service-Component': '*')
attributes('Private-Package': 'org.eclipse.fx.drift.samples.lwjgl')
attributes('Import-Package': '!javafx.*, *')
}
}
plugins {
id 'java-library'
id "biz.aQute.bnd.builder"
id 'eclipse'

id 'org.openjfx.javafxplugin'

}

java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}

javafx {
version = "11.0.2"
modules = [ 'javafx.controls' ]
}

compileJava {
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
options.compilerArgs.addAll("--release", "8")
options.encoding = 'UTF-8'
options.fork = true
}

project.ext.lwjglVersion = '3.2.0'

import org.gradle.internal.os.OperatingSystem

switch (OperatingSystem.current()) {
case OperatingSystem.LINUX:
project.ext.lwjglNatives = "natives-linux"
break
case OperatingSystem.MAC_OS:
project.ext.lwjglNatives = "natives-macos"
break
case OperatingSystem.WINDOWS:
project.ext.lwjglNatives = "natives-windows"
break
}

dependencies {
api 'org.eclipse.fx:org.eclipse.fx.drift:999.0.0-SNAPSHOT'

// api 'org.eclipse.fx:org.eclipse.fx.drift:1.0.0.rc2'
// api files('../../efxclipse-drift/build/libs/org.eclipse.fx.drift.jar')

api project(':org.eclipse.fx.drift.samples')

api 'org.osgi:org.osgi.service.component.annotations:1.3.0'

implementation "org.lwjgl:lwjgl:$lwjglVersion"
implementation "org.lwjgl:lwjgl-assimp:$lwjglVersion"
implementation "org.lwjgl:lwjgl-opengl:$lwjglVersion"
runtimeOnly "org.lwjgl:lwjgl:$lwjglVersion:$lwjglNatives"
runtimeOnly "org.lwjgl:lwjgl-assimp:$lwjglVersion:$lwjglNatives"
runtimeOnly "org.lwjgl:lwjgl-opengl:$lwjglVersion:$lwjglNatives"

implementation 'org.joml:joml:1.9.22'

/*
implementation "org.lwjgl.osgi:org.lwjgl.lwjgl:$lwjglVersion"
implementation "org.lwjgl.osgi:org.lwjgl.assimp:$lwjglVersion"
implementation "org.lwjgl.osgi:org.lwjgl.opengl:$lwjglVersion"
*/

}

jar {
manifest {
//attributes('Service-Component': '*')
attributes('Private-Package': 'org.eclipse.fx.drift.samples.lwjgl')
attributes('Import-Package': '!javafx.*, *')
}
}

0 comments on commit e80ed60

Please sign in to comment.