// tedi-core
plugins {
id 'org.jetbrains.kotlin.jvm'
id 'org.openjfx.javafxplugin'
}
defaultTasks 'install'
apply plugin: 'org.openjfx.javafxplugin'
apply plugin: 'kotlin'
apply plugin: 'maven-publish'
javafx {
modules = ['javafx.controls']
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
testCompile "junit:junit:4.11"
testCompile "org.jetbrains.kotlin:kotlin-test:$kotlin_version"
}
publishing {
publications {
library(MavenPublication) {
from components.java
}
}
repositories {
maven {
// 9097181 is the GitLab project ID of project nickthecoder/tedi
url "https://gitlab.com/api/v4/projects/9097181/packages/maven"
credentials(HttpHeaderCredentials) {
name = "Private-Token"
value = gitLabPrivateToken // the variable resides in ~/.gradle/gradle.properties
}
authentication {
header(HttpHeaderAuthentication)
}
}
}
}