Skip to content

Commit

Permalink
adds kontlin support
Browse files Browse the repository at this point in the history
  • Loading branch information
palasjir committed Dec 27, 2017
1 parent 77b4d2c commit c2454d0
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.idea/
.gradle/
build/
out/

*.iws
*.ipr
Expand Down
31 changes: 24 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,26 +1,43 @@
apply plugin: 'idea'
apply plugin: 'java'
apply plugin: 'application'

buildscript {
ext.kotlin_version = '1.2.10'
ext.jogl = '2.3.2'

repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}

apply plugin: 'idea'
apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'application'

repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}

dependencies {
def jogl = '2.3.2'

compile "org.apache.commons:commons-math3:3.2"
compile "com.github.jroyalty:jglm:master-SNAPSHOT"
compile "org.jogamp.gluegen:gluegen-rt-main:$jogl"
compile "org.jogamp.jogl:jogl-all-main:$jogl"
compile "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlin_version"
}

compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}

compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}

mainClassName = 'palasjir.viewer.Main'
mainClassName = 'palasjir.MainKt'
2 changes: 0 additions & 2 deletions src/main/java/palasjir/viewer/utils/Utils.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package palasjir.viewer.utils;

import com.hackoeur.jglm.Mat3;
import com.hackoeur.jglm.Mat4;
import com.jogamp.opengl.GL;
import com.jogamp.opengl.GL3;

Expand Down
5 changes: 5 additions & 0 deletions src/main/kotlin/palasjir/Main.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package palasjir

fun main(args: Array<String>) {
println("Hello world!")
}

0 comments on commit c2454d0

Please sign in to comment.