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

Update build script

parent 70d7134f
......@@ -22,6 +22,7 @@ plugins {
id 'org.jetbrains.dokka' version '0.10.1'
id 'com.gitlab.morality.grit' version '2.0.2'
id 'org.jlleitschuh.gradle.ktlint' version '9.2.1'
id 'com.jfrog.bintray' version '1.8.5'
}
group = 'ch.memobase'
......@@ -32,7 +33,7 @@ targetCompatibility = 1.8
repositories {
jcenter()
maven {
url "https://dl.bintray.com/memoriav/memobase"
url "https://dl.bintray.com/memoriav/memobase"
}
}
......@@ -78,6 +79,20 @@ task sourceJar(type: Jar) {
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 {
kotlinOptions.jvmTarget = "1.8"
}
......@@ -87,14 +102,12 @@ compileTestKotlin {
publishing {
publications {
normalizationServiceLibrary(MavenPublication) {
groupId this.group
memobasePub(MavenPublication) {
groupId = group
artifact sourceJar
from components.java
pom {
name = 'Normalization 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"
url = "https://gitlab.switch.ch/memoriav/memobase-2020/libraries/normalizer-service-configuration"
licenses {
license {
name = 'The Apache License, Version 2.0'
......@@ -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