Commit ca7cb196 authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Update build script

parent 70d7134f
...@@ -22,6 +22,7 @@ plugins { ...@@ -22,6 +22,7 @@ plugins {
id 'org.jetbrains.dokka' version '0.10.1' id 'org.jetbrains.dokka' version '0.10.1'
id 'com.gitlab.morality.grit' version '2.0.2' id 'com.gitlab.morality.grit' version '2.0.2'
id 'org.jlleitschuh.gradle.ktlint' version '9.2.1' id 'org.jlleitschuh.gradle.ktlint' version '9.2.1'
id 'com.jfrog.bintray' version '1.8.5'
} }
group = 'ch.memobase' group = 'ch.memobase'
...@@ -32,7 +33,7 @@ targetCompatibility = 1.8 ...@@ -32,7 +33,7 @@ targetCompatibility = 1.8
repositories { repositories {
jcenter() jcenter()
maven { maven {
url "https://dl.bintray.com/memoriav/memobase" url "https://dl.bintray.com/memoriav/memobase"
} }
} }
...@@ -78,6 +79,20 @@ task sourceJar(type: Jar) { ...@@ -78,6 +79,20 @@ task sourceJar(type: Jar) {
classifier "sources" classifier "sources"
} }
bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_API_KEY')
publications = ['memobasePub']
pkg {
name = 'normalizer-service-configuration'
repo = 'memobase'
userOrg = 'memoriav'
desc = 'Parser & validation for the normalizer service configuration.'
licenses = ['Apache-2.0']
vcsUrl = 'https://gitlab.switch.ch/memoriav/memobase-2020/libraries/normalizer-service-configuration'
}
}
compileKotlin { compileKotlin {
kotlinOptions.jvmTarget = "1.8" kotlinOptions.jvmTarget = "1.8"
} }
...@@ -87,14 +102,12 @@ compileTestKotlin { ...@@ -87,14 +102,12 @@ compileTestKotlin {
publishing { publishing {
publications { publications {
normalizationServiceLibrary(MavenPublication) { memobasePub(MavenPublication) {
groupId this.group groupId = group
artifact sourceJar artifact sourceJar
from components.java from components.java
pom { pom {
name = 'Normalization Service Configuration' url = "https://gitlab.switch.ch/memoriav/memobase-2020/libraries/normalizer-service-configuration"
description = "This library contains the parsers and validators for the normalization service configurations."
url = "https://gitlab.example.com/api/v4/projects/package-registry/packages/maven"
licenses { licenses {
license { license {
name = 'The Apache License, Version 2.0' name = 'The Apache License, Version 2.0'
...@@ -117,18 +130,4 @@ publishing { ...@@ -117,18 +130,4 @@ publishing {
} }
} }
repositories {
maven {
url "https://gitlab.example.com/api/v4/projects/package-registry/packages/maven"
name "GitLab"
credentials(HttpHeaderCredentials) {
name "Job Token"
value System.getenv("CI_JOB_TOKEN")
}
authentication {
header(HttpHeaderAuthentication)
}
}
}
} }
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment