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

[WIP] Update publish to maven

parent e3d6e7d7
Pipeline #23926 failed with stages
in 4 minutes and 31 seconds
......@@ -8,24 +8,9 @@ stages:
before_script:
- export GRADLE_USER_HOME=`pwd`/.gradle
test:
stage: test
except:
- tags
image: gradle:6.3-jdk8
tags:
- mbr
script:
- gradle clean test
publish:
stage: publish
only:
- tags
image: gradle:6.3-jdk8
tags:
- mbr
cache:
policy: push
script:
- gradle clean test bintrayUpload
include:
- project: 'memoriav/memobase-2020/utilities/ci-templates'
file: 'gradle-test/gradle-test.yml'
- project: 'memoriav/memobase-2020/utilities/ci-templates'
file: 'gitlab-publish/gitlab-publish.yml'
\ No newline at end of file
......@@ -22,7 +22,6 @@ 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'
......@@ -33,7 +32,7 @@ targetCompatibility = 1.8
repositories {
jcenter()
maven {
url "https://dl.bintray.com/memoriav/memobase"
url "https://dl.bintray.com/memoriav/memobase"
}
}
......@@ -79,20 +78,6 @@ 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"
}
......@@ -102,12 +87,14 @@ compileTestKotlin {
publishing {
publications {
memobasePub(MavenPublication) {
groupId = group
normalizationServiceLibrary(MavenPublication) {
groupId this.group
artifact sourceJar
from components.java
pom {
url = "https://gitlab.switch.ch/memoriav/memobase-2020/libraries/normalizer-service-configuration"
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"
licenses {
license {
name = 'The Apache License, Version 2.0'
......@@ -130,4 +117,18 @@ 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