Skip to content
Snippets Groups Projects
Verified Commit 0e1e3a06 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Release 1.0.0

parent 23d25543
No related branches found
No related tags found
No related merge requests found
Pipeline #598 failed
...@@ -7,11 +7,13 @@ cache: ...@@ -7,11 +7,13 @@ cache:
before_script: before_script:
- "export GRADLE_USER_HOME=$(pwd)/.gradle" - "export GRADLE_USER_HOME=$(pwd)/.gradle"
- "echo $SIGNING_secretKey | base64 -d > $GRADLE_USER_HOME/sonatype_upload.gpg"
- "chmod +x ./gradlew" - "chmod +x ./gradlew"
stages: stages:
- "build" - "build"
- "test" - "test"
- "release"
build: build:
stage: "build" stage: "build"
...@@ -34,3 +36,13 @@ test: ...@@ -34,3 +36,13 @@ test:
- "*/build/reports/*.xml" - "*/build/reports/*.xml"
except: except:
- "tags" - "tags"
release:
stage: "release"
script:
- "./gradlew publish"
artifacts:
paths:
- "*/build/libs/*"
# only:
# - "tags"
...@@ -16,6 +16,7 @@ plugins { ...@@ -16,6 +16,7 @@ plugins {
id("org.jetbrains.dokka") version "1.4.20" id("org.jetbrains.dokka") version "1.4.20"
id("maven-publish") id("maven-publish")
id("jacoco") id("jacoco")
id("com.vanniktech.maven.publish") version "0.13.0"
} }
repositories { repositories {
...@@ -71,62 +72,3 @@ tasks.withType<KotlinCompile> { ...@@ -71,62 +72,3 @@ tasks.withType<KotlinCompile> {
) )
} }
} }
tasks {
val sourcesJar by registering(Jar::class) {
dependsOn(JavaPlugin.CLASSES_TASK_NAME)
archiveClassifier.set("sources")
from(sourceSets["main"].allSource)
}
val javadocJar by registering(Jar::class) {
dependsOn("dokkaJavadoc")
archiveClassifier.set("javadoc")
from(javadoc)
}
artifacts {
archives(sourcesJar)
archives(javadocJar)
archives(jar)
}
}
publishing {
publications {
register<MavenPublication>("mavenJava") {
from(components["java"])
artifact(tasks["sourcesJar"])
artifact(tasks["javadocJar"])
groupId = "de.justjanne"
artifactId = "kotlin-bitflags"
version = "0.1.0"
pom.withXml {
asNode().apply {
appendNode("description", "Simple Bitflags for Kotlin")
appendNode("name", rootProject.name)
appendNode("url", "https://git.kuschku.de/justJanne/kotlin-bitflags")
appendNode("licenses").appendNode("license").apply {
appendNode("name", "Mozilla Public License Version 2.0")
appendNode("url", "https://www.mozilla.org/en-US/MPL/2.0/")
}
appendNode("developers").appendNode("developer").apply {
appendNode("name", "Janne Mareike Koschinski")
appendNode("email", "support@kuschku.de")
appendNode("organizationUrl", "https://kuschku.de/")
}
appendNode("scm").apply {
appendNode("connection", "scm:git:https://git.kuschku.de/justJanne/kotlin-bitflags.git")
appendNode("developerConnection", "scm:git:ssh://git.kuschku.de:2222/justJanne/kotlin-bitflags.git")
appendNode("url", "https://git.kuschku.de/justJanne/kotlin-bitflags")
}
appendNode("properties").apply {
appendNode("project.build.sourceEncoding", "UTF-8")
}
}
}
}
}
}
kotlin.code.style=official kotlin.code.style=official
junit5Version=5.6.0 junit5Version=5.6.0
GROUP=de.justjanne
VERSION_NAME=1.0.0-RC
POM_ARTIFACT_ID=kotlin-bitflags
POM_NAME=kotlin-bitflags
POM_DESCRIPTION=Simple Bitflags for Kotlin
POM_URL=https://git.kuschku.de/justJanne/kotlin-bitflags
POM_SCM_URL=https://git.kuschku.de/justJanne/kotlin-bitflags
POM_SCM_CONNECTION=scm:git:https://git.kuschku.de/justJanne/kotlin-bitflags.git
POM_SCM_DEV_CONNECTION=scm:git:ssh://git.kuschku.de:2222/justJanne/kotlin-bitflags.git
POM_LICENSE_NAME=Mozilla Public License Version 2.0
POM_LICENSE_URL=https://www.mozilla.org/en-US/MPL/2.0/
POM_LICENSE_DIST=repo
POM_DEVELOPER_ID=justJanne
POM_DEVELOPER_NAME=Janne Mareike Koschinski
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment