56 lines
1015 B
Groovy
56 lines
1015 B
Groovy
plugins {
|
|
id 'java-library'
|
|
id 'maven-publish'
|
|
}
|
|
|
|
group = 'com.jessebrault.extensible'
|
|
version = '0.1.0'
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
compileOnlyApi libs.jetbrains.anotations
|
|
}
|
|
|
|
java {
|
|
withSourcesJar()
|
|
toolchain {
|
|
languageVersion = JavaLanguageVersion.of(21)
|
|
}
|
|
}
|
|
|
|
jar {
|
|
archiveBaseName = 'extensible'
|
|
}
|
|
|
|
sourcesJar {
|
|
archiveBaseName = 'extensible'
|
|
}
|
|
|
|
publishing {
|
|
repositories {
|
|
maven {
|
|
name = "Gitea"
|
|
url = uri("https://git.jessebrault.com/api/packages/jessebrault/maven")
|
|
|
|
credentials(HttpHeaderCredentials) {
|
|
name = "Authorization"
|
|
value = "token ${System.getenv("GITEA_ACCESS_TOKEN")}"
|
|
}
|
|
|
|
authentication {
|
|
header(HttpHeaderAuthentication)
|
|
}
|
|
}
|
|
}
|
|
|
|
publications {
|
|
create('extensible', MavenPublication) {
|
|
artifactId = 'extensible'
|
|
from components.java
|
|
}
|
|
}
|
|
}
|