mirror of
https://github.com/GayPizzaSpecifications/concrete.git
synced 2025-08-03 13:11:33 +00:00
104 lines
2.6 KiB
Plaintext
104 lines
2.6 KiB
Plaintext
plugins {
|
|
`kotlin-dsl`
|
|
kotlin("plugin.serialization") version "1.7.10"
|
|
|
|
id("maven-publish")
|
|
id("java-gradle-plugin")
|
|
}
|
|
|
|
group = "gay.pizza.foundation"
|
|
version = "0.7.0-SNAPSHOT"
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
gradlePluginPortal()
|
|
}
|
|
|
|
dependencies {
|
|
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.10")
|
|
implementation("org.jetbrains.kotlin:kotlin-serialization:1.7.10")
|
|
implementation("gradle.plugin.com.github.johnrengelman:shadow:7.1.2")
|
|
implementation("com.google.code.gson:gson:2.10.1")
|
|
|
|
// Implementation of crypto used in smart downloader.
|
|
implementation("org.bouncycastle:bcprov-jdk15on:1.70")
|
|
}
|
|
|
|
gradlePlugin {
|
|
plugins {
|
|
create("concrete-root") {
|
|
id = "gay.pizza.foundation.concrete-root"
|
|
implementationClass = "gay.pizza.foundation.concrete.ConcreteRootPlugin"
|
|
}
|
|
|
|
create("concrete-base") {
|
|
id = "gay.pizza.foundation.concrete-base"
|
|
implementationClass = "gay.pizza.foundation.concrete.ConcreteBasePlugin"
|
|
}
|
|
|
|
create("concrete-library") {
|
|
id = "gay.pizza.foundation.concrete-library"
|
|
implementationClass = "gay.pizza.foundation.concrete.ConcreteLibraryPlugin"
|
|
}
|
|
|
|
create("concrete-plugin") {
|
|
id = "gay.pizza.foundation.concrete-plugin"
|
|
implementationClass = "gay.pizza.foundation.concrete.ConcretePluginPlugin"
|
|
}
|
|
}
|
|
}
|
|
|
|
java {
|
|
val version = JavaVersion.toVersion("17")
|
|
sourceCompatibility = version
|
|
targetCompatibility = version
|
|
}
|
|
|
|
tasks.compileKotlin {
|
|
kotlinOptions {
|
|
jvmTarget = "17"
|
|
}
|
|
}
|
|
|
|
publishing {
|
|
repositories {
|
|
mavenLocal()
|
|
|
|
var githubPackagesToken = System.getenv("GITHUB_TOKEN")
|
|
if (githubPackagesToken == null) {
|
|
githubPackagesToken = project.findProperty("github.token") as String?
|
|
}
|
|
|
|
var gitlabPackagesToken = System.getenv("GITLAB_TOKEN")
|
|
if (gitlabPackagesToken == null) {
|
|
gitlabPackagesToken = project.findProperty("gitlab.com.accessToken") as String?
|
|
}
|
|
|
|
maven {
|
|
name = "GitHubPackages"
|
|
url = uri("https://maven.pkg.github.com/gaypizzaspecifications/concrete")
|
|
credentials {
|
|
username = project.findProperty("github.username") as String? ?: "gaypizzaspecifications"
|
|
password = githubPackagesToken
|
|
}
|
|
}
|
|
|
|
maven {
|
|
name = "GitLab"
|
|
url = uri("https://gitlab.com/api/v4/projects/42873094/packages/maven")
|
|
credentials(HttpHeaderCredentials::class.java) {
|
|
name = "Private-Token"
|
|
value = gitlabPackagesToken
|
|
}
|
|
|
|
authentication {
|
|
create<HttpHeaderAuthentication>("header")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
tasks.withType<Wrapper> {
|
|
gradleVersion = "7.6"
|
|
}
|