Files
concrete/build.gradle.kts

68 lines
1.6 KiB
Plaintext
Raw Normal View History

import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
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"
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")
// 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-project") {
id = "lgbt.mystic.foundation.concrete-project"
implementationClass = "lgbt.mystic.foundation.concrete.ConcreteProjectPlugin"
2022-07-09 18:14:21 -07:00
}
}
}
java {
val version = JavaVersion.toVersion("1.8")
sourceCompatibility = version
targetCompatibility = version
}
tasks.withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "1.8"
}
}
2022-07-09 18:14:21 -07:00
publishing {
repositories {
mavenLocal()
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?
}
}
}
}