Files
concrete/build.gradle.kts

95 lines
2.3 KiB
Plaintext
Raw Normal View History

2022-07-09 18:14:21 -07:00
plugins {
`kotlin-dsl`
kotlin("plugin.serialization") version "1.6.21"
id("maven-publish")
id("java-gradle-plugin")
}
group = "lgbt.mystic.foundation"
2022-10-26 20:32:44 -07:00
version = "0.5.0"
2022-07-09 18:14:21 -07:00
repositories {
mavenCentral()
gradlePluginPortal()
}
dependencies {
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.21")
implementation("org.jetbrains.kotlin:kotlin-serialization:1.6.21")
implementation("gradle.plugin.com.github.johnrengelman:shadow:7.1.2")
2022-10-26 20:32:44 -07:00
implementation("com.google.code.gson:gson:2.10")
2022-07-09 18:14:21 -07:00
// Implementation of crypto used in smart downloader.
2022-07-09 18:14:21 -07:00
implementation("org.bouncycastle:bcprov-jdk15on:1.70")
}
gradlePlugin {
plugins {
create("concrete-root") {
id = "lgbt.mystic.foundation.concrete-root"
implementationClass = "lgbt.mystic.foundation.concrete.ConcreteRootPlugin"
}
create("concrete-base") {
id = "lgbt.mystic.foundation.concrete-base"
implementationClass = "lgbt.mystic.foundation.concrete.ConcreteBasePlugin"
}
create("concrete-library") {
id = "lgbt.mystic.foundation.concrete-library"
implementationClass = "lgbt.mystic.foundation.concrete.ConcreteLibraryPlugin"
2022-07-09 18:14:21 -07:00
}
create("concrete-plugin") {
id = "lgbt.mystic.foundation.concrete-plugin"
implementationClass = "lgbt.mystic.foundation.concrete.ConcretePluginPlugin"
}
2022-07-09 18:14:21 -07:00
}
}
java {
2022-10-26 20:32:44 -07:00
val version = JavaVersion.toVersion("17")
sourceCompatibility = version
targetCompatibility = version
}
tasks.compileKotlin {
kotlinOptions {
2022-10-26 20:32:44 -07:00
jvmTarget = "17"
}
}
2022-07-09 18:14:21 -07:00
publishing {
repositories {
mavenLocal()
2022-10-26 20:32:44 -07:00
2022-07-09 18:14:21 -07:00
maven {
name = "github-packages"
2022-07-09 18:14:21 -07:00
url = uri("https://maven.pkg.github.com/mysticlgbt/concrete")
credentials {
username = project.findProperty("github.username") as String?
password = project.findProperty("github.token") as String?
}
}
2022-10-26 20:32:44 -07:00
2022-07-12 01:06:14 -07:00
maven {
name = "gitlab"
2022-10-26 20:32:44 -07:00
url = uri("https://gitlab.com/api/v4/projects/37752100/packages/maven")
2022-07-12 01:06:14 -07:00
credentials(HttpHeaderCredentials::class.java) {
name = "Private-Token"
value = project.findProperty("gitlab.com.accessToken") as String?
}
2022-10-26 20:32:44 -07:00
2022-07-12 01:06:14 -07:00
authentication {
create<HttpHeaderAuthentication>("header")
}
}
2022-07-09 18:14:21 -07:00
}
}
2022-10-26 20:32:44 -07:00
tasks.withType<Wrapper> {
gradleVersion = "7.5.1"
distributionType = Wrapper.DistributionType.ALL
}