diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2021-05-05 16:23:33 +0200 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2021-05-06 14:04:03 +0200 |
| commit | 25e2fd97409311c89030e51e1a78211d335709b9 (patch) | |
| tree | ea17b333514d6a7b69a814c40022ed13750265eb /buildSrc/src/main/kotlin/kotlin-library-conventions.gradle.kts | |
| parent | 50aa13c5e9943275bca3132e83b49e59f997084a (diff) | |
build: Add support for publishing to Maven Central
This change adds support for publishing OpenDC to Maven Central. This
allows other people to develop with OpenDC without needing to build the
entire project themselves.
Diffstat (limited to 'buildSrc/src/main/kotlin/kotlin-library-conventions.gradle.kts')
| -rw-r--r-- | buildSrc/src/main/kotlin/kotlin-library-conventions.gradle.kts | 23 |
1 files changed, 4 insertions, 19 deletions
diff --git a/buildSrc/src/main/kotlin/kotlin-library-conventions.gradle.kts b/buildSrc/src/main/kotlin/kotlin-library-conventions.gradle.kts index 43b1d148..296d5967 100644 --- a/buildSrc/src/main/kotlin/kotlin-library-conventions.gradle.kts +++ b/buildSrc/src/main/kotlin/kotlin-library-conventions.gradle.kts @@ -1,7 +1,5 @@ /* - * MIT License - * - * Copyright (c) 2019 atlarge-research + * Copyright (c) 2021 AtLarge Research * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -22,30 +20,17 @@ * SOFTWARE. */ -import org.jetbrains.kotlin.gradle.tasks.KotlinCompile - plugins { - `java-library` - kotlin("jvm") - id("org.jlleitschuh.gradle.ktlint") + id("kotlin-conventions") + id("publishing-conventions") id("dokka-conventions") } /* Project configuration */ -repositories { - mavenCentral() -} - java { - sourceCompatibility = Versions.jvmTarget + withSourcesJar() } kotlin { explicitApi() } - -tasks.withType<KotlinCompile>().configureEach { - kotlinOptions.jvmTarget = Versions.jvmTarget.toString() - kotlinOptions.useIR = true - kotlinOptions.freeCompilerArgs += "-Xopt-in=kotlin.RequiresOptIn" -} |
