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-07-10 13:02:45 -07:00
|
|
|
version = "0.3.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")
|
|
|
|
implementation("com.google.code.gson:gson:2.9.0")
|
|
|
|
|
2022-07-10 00:50:05 -04: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 {
|
2022-07-10 00:50:05 -04:00
|
|
|
create("concrete-root") {
|
|
|
|
id = "lgbt.mystic.foundation.concrete-root"
|
|
|
|
implementationClass = "lgbt.mystic.foundation.concrete.ConcreteRootPlugin"
|
|
|
|
}
|
|
|
|
|
2022-07-10 18:17:42 -04:00
|
|
|
create("concrete-plugin") {
|
|
|
|
id = "lgbt.mystic.foundation.concrete-plugin"
|
2022-07-10 00:50:05 -04:00
|
|
|
implementationClass = "lgbt.mystic.foundation.concrete.ConcreteProjectPlugin"
|
2022-07-09 18:14:21 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-10 00:50:05 -04:00
|
|
|
java {
|
2022-07-10 18:17:42 -04:00
|
|
|
val version = JavaVersion.toVersion("11")
|
2022-07-10 00:50:05 -04:00
|
|
|
sourceCompatibility = version
|
|
|
|
targetCompatibility = version
|
|
|
|
}
|
|
|
|
|
2022-07-10 18:17:42 -04:00
|
|
|
tasks.compileKotlin {
|
2022-07-10 00:50:05 -04:00
|
|
|
kotlinOptions {
|
2022-07-10 18:17:42 -04:00
|
|
|
jvmTarget = "11"
|
2022-07-10 00:50:05 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-09 18:14:21 -07:00
|
|
|
publishing {
|
|
|
|
repositories {
|
|
|
|
mavenLocal()
|
|
|
|
maven {
|
2022-07-10 00:50:05 -04:00
|
|
|
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?
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|