aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/build.gradle25
-rw-r--r--plugins/build.gradle.kts11
-rw-r--r--plugins/mathjax/build.gradle17
-rw-r--r--plugins/mathjax/build.gradle.kts8
-rw-r--r--plugins/xml/build.gradle17
-rw-r--r--plugins/xml/build.gradle.kts8
6 files changed, 27 insertions, 59 deletions
diff --git a/plugins/build.gradle b/plugins/build.gradle
deleted file mode 100644
index a0bc5ee1..00000000
--- a/plugins/build.gradle
+++ /dev/null
@@ -1,25 +0,0 @@
-buildscript {
- dependencies {
- classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
- }
-}
-
-allprojects {
- apply plugin: 'kotlin'
-
- sourceCompatibility = 1.8
-
- tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
- kotlinOptions {
- languageVersion = language_version
- apiVersion = language_version
- jvmTarget = "1.8"
- }
- }
-}
-
-subprojects {
- dependencies {
- testCompile project(':testApi')
- }
-} \ No newline at end of file
diff --git a/plugins/build.gradle.kts b/plugins/build.gradle.kts
new file mode 100644
index 00000000..5f2f6dcb
--- /dev/null
+++ b/plugins/build.gradle.kts
@@ -0,0 +1,11 @@
+subprojects {
+ apply {
+ plugin("maven-publish")
+ }
+
+ dependencies {
+ compileOnly(project(":core"))
+ compileOnly(kotlin("stdlib-jdk8"))
+ testImplementation(project(":testApi"))
+ }
+} \ No newline at end of file
diff --git a/plugins/mathjax/build.gradle b/plugins/mathjax/build.gradle
deleted file mode 100644
index 6578ff45..00000000
--- a/plugins/mathjax/build.gradle
+++ /dev/null
@@ -1,17 +0,0 @@
-import javax.tools.ToolProvider
-
-apply plugin: 'maven-publish'
-
-dependencies {
- compileOnly project(':core')
-}
-
-publishing {
- publications {
- dokkaCore(MavenPublication) { publication ->
- artifactId = 'mathjax-plugin'
-
- from components.java
- }
- }
-} \ No newline at end of file
diff --git a/plugins/mathjax/build.gradle.kts b/plugins/mathjax/build.gradle.kts
new file mode 100644
index 00000000..0e9a16d0
--- /dev/null
+++ b/plugins/mathjax/build.gradle.kts
@@ -0,0 +1,8 @@
+publishing {
+ publications {
+ register<MavenPublication>("mathjaxPlugin") {
+ artifactId = "mathjax-plugin"
+ from(components["java"])
+ }
+ }
+} \ No newline at end of file
diff --git a/plugins/xml/build.gradle b/plugins/xml/build.gradle
deleted file mode 100644
index ed4adb92..00000000
--- a/plugins/xml/build.gradle
+++ /dev/null
@@ -1,17 +0,0 @@
-import javax.tools.ToolProvider
-
-apply plugin: 'maven-publish'
-
-dependencies {
- compileOnly project(':core')
-}
-
-publishing {
- publications {
- dokkaCore(MavenPublication) { publication ->
- artifactId = 'xml-plugin'
-
- from components.java
- }
- }
-} \ No newline at end of file
diff --git a/plugins/xml/build.gradle.kts b/plugins/xml/build.gradle.kts
new file mode 100644
index 00000000..cd65cfe4
--- /dev/null
+++ b/plugins/xml/build.gradle.kts
@@ -0,0 +1,8 @@
+publishing {
+ publications {
+ register<MavenPublication>("xmlPlugin") {
+ artifactId = "xml-plugin"
+ from(components["java"])
+ }
+ }
+} \ No newline at end of file