Skip to content

Instantly share code, notes, and snippets.

@elect86
Created April 10, 2018 11:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elect86/b332f3985f797db1d562af4149cb47e9 to your computer and use it in GitHub Desktop.
Save elect86/b332f3985f797db1d562af4149cb47e9 to your computer and use it in GitHub Desktop.
buildscript {
ext.kotlinVersion = '1.2.40-eap-51'
repositories {
jcenter() // shadow
mavenCentral()
maven { setUrl("https://dl.bintray.com/kotlin/kotlin-dev") }
maven { setUrl("https://oss.sonatype.org/content/repositories/snapshots/") }
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.2'
}
}
plugins {
id "de.undercouch.download" version "3.4.2"
}
apply plugin: 'java'
apply plugin: 'kotlin'
// jitpack
apply plugin: 'maven'
group = 'com.github.kotlin-graphics'
apply plugin: 'com.github.johnrengelman.shadow'
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"
testCompile 'io.kotlintest:kotlintest:2.0.7'
compile "com.github.kotlin-graphics:glm:351431d3224c5afa7ab7e39661e17b91feea34f3"
compile "net.java.dev.jna:jna:4.5.1"
}
repositories {
mavenCentral()
maven { setUrl("https://dl.bintray.com/kotlin/kotlin-dev") }
maven { setUrl("http://dl.bintray.com/kotlin/kotlin-eap-1.2") }
maven { setUrl("https://oss.sonatype.org/content/repositories/snapshots/") }
maven { setUrl('https://jitpack.io') }
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
test {
testLogging {
events "passed", "skipped", "failed"
exceptionFormat "full"
outputs.upToDateWhen {false}
showStandardStreams = true
}
}
task fetchBinaries {
def dir = 'https://github.com/ValveSoftware/openvr/tree/master/bin/linux32/'
def urlLister = new org.apache.ivy.util.url.ApacheURLLister()
def files = urlLister.listFiles(new URL(dir))
download {
src files
dest "C:\\Users\\Public\\Music"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment