Skip to content

Commit

Permalink
Bugreport jreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
Brutus5000 committed Nov 23, 2024
1 parent 9972c3d commit 941ed43
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
alias(libs.plugins.kotlin.jvm) apply false
alias(libs.plugins.test.logger) apply false
alias(libs.plugins.jreleaser)
}

configure(subprojects) {
Expand All @@ -16,7 +17,7 @@ configure(subprojects) {

tasks.withType<Test> {
useJUnitPlatform()
}
}

configure<PublishingExtension> {
publications {
Expand Down
1 change: 1 addition & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,4 @@ pojo-tester = { module = "pl.pojo:pojo-tester", version = "0.7.6" }
kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
kotlin-plugin-spring = { id = "org.jetbrains.kotlin.plugin.spring", version.ref = "kotlin" }
test-logger = { id = "com.adarshr.test-logger", version = "4.0.0" }
jreleaser = { id = "org.jreleaser", version = "1.15.0" }
61 changes: 61 additions & 0 deletions jreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
project:
name: FAForever Java Commons
version: 1.0.0
description: A shared Java library for usage in the FAForever project
license: MIT
links:
homepage: https://github.com/FAForever/faf-java-commons
inceptionYear: 2017

release:
github:
overwrite: true
changelog:
formatted: ALWAYS
preset: conventional-commits
contributors:
format: '- {{contributorName}}{{#contributorUsernameAsLink}} ({{.}}){{/contributorUsernameAsLink}}'

distributions:
api:
active: ALWAYS
type: SINGLE_JAR
stereotype: NONE
artifacts:
- path: api/build/libs/api-{{projectVersion}}.jar
java:
groupId: com.faforever.commons
artifactId: api

data:
active: ALWAYS
type: SINGLE_JAR
stereotype: NONE
artifacts:
- path: data/build/libs/data-{{projectVersion}}.jar
java:
groupId: com.faforever.commons
artifactId: data

lobby:
active: ALWAYS
type: SINGLE_JAR
stereotype: NONE
artifacts:
- path: lobby/build/libs/lobby-{{projectVersion}}.jar
java:
groupId: com.faforever.commons
artifactId: lobby

signing:
active: ALWAYS
armored: true

deploy:
maven:
mavenCentral:
sonatype:
active: ALWAYS
url: https://central.sonatype.com/api/v1/publisher
stagingRepositories:
- target/staging-deploy

0 comments on commit 941ed43

Please sign in to comment.