Update versions and add Base Plugin
This commit is contained in:
parent
57ca6e57af
commit
f5cdad2093
@ -16,7 +16,7 @@ repositories {
|
|||||||
maven("https://dl.bintray.com/kotlin/kotlin-dev")
|
maven("https://dl.bintray.com/kotlin/kotlin-dev")
|
||||||
}
|
}
|
||||||
|
|
||||||
val kotlinVersion = "1.4.0"
|
val kotlinVersion = "1.4.10"
|
||||||
|
|
||||||
java {
|
java {
|
||||||
targetCompatibility = JavaVersion.VERSION_1_8
|
targetCompatibility = JavaVersion.VERSION_1_8
|
||||||
@ -33,6 +33,11 @@ dependencies {
|
|||||||
|
|
||||||
gradlePlugin {
|
gradlePlugin {
|
||||||
plugins {
|
plugins {
|
||||||
|
create("kscience.base"){
|
||||||
|
id = "ru.mipt.npm.bas"
|
||||||
|
description = "The basic plugin that does not do anything but loading classpath, versions and extensions"
|
||||||
|
implementationClass = "ru.mipt.npm.gradle.KScienceBasePlugin"
|
||||||
|
}
|
||||||
create("kscience.publish") {
|
create("kscience.publish") {
|
||||||
id = "ru.mipt.npm.publish"
|
id = "ru.mipt.npm.publish"
|
||||||
description = "The publication plugin for bintray and github"
|
description = "The publication plugin for bintray and github"
|
||||||
|
13
src/main/kotlin/ru/mipt/npm/gradle/KScienceBasePlugin.kt
Normal file
13
src/main/kotlin/ru/mipt/npm/gradle/KScienceBasePlugin.kt
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
package ru.mipt.npm.gradle
|
||||||
|
|
||||||
|
import org.gradle.api.Plugin
|
||||||
|
import org.gradle.api.Project
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Apply extension and repositories
|
||||||
|
*/
|
||||||
|
open class KScienceBasePlugin : Plugin<Project> {
|
||||||
|
override fun apply(target: Project): Unit = target.run{
|
||||||
|
registerKScienceExtension()
|
||||||
|
}
|
||||||
|
}
|
@ -12,7 +12,7 @@ import org.jetbrains.kotlin.gradle.dsl.KotlinJsProjectExtension
|
|||||||
open class KScienceJSPlugin : Plugin<Project> {
|
open class KScienceJSPlugin : Plugin<Project> {
|
||||||
override fun apply(project: Project): Unit = project.run {
|
override fun apply(project: Project): Unit = project.run {
|
||||||
plugins.apply("org.jetbrains.kotlin.js")
|
plugins.apply("org.jetbrains.kotlin.js")
|
||||||
extensions.add("kscience", KScienceExtension(this))
|
registerKScienceExtension()
|
||||||
|
|
||||||
repositories.applyRepos()
|
repositories.applyRepos()
|
||||||
|
|
||||||
|
@ -9,10 +9,8 @@ import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension
|
|||||||
|
|
||||||
open class KScienceMPPlugin : Plugin<Project> {
|
open class KScienceMPPlugin : Plugin<Project> {
|
||||||
override fun apply(project: Project): Unit = project.run {
|
override fun apply(project: Project): Unit = project.run {
|
||||||
|
|
||||||
plugins.apply("org.jetbrains.kotlin.multiplatform")
|
plugins.apply("org.jetbrains.kotlin.multiplatform")
|
||||||
extensions.add("kscience", KScienceExtension(this))
|
registerKScienceExtension()
|
||||||
|
|
||||||
repositories.applyRepos()
|
repositories.applyRepos()
|
||||||
|
|
||||||
configure<KotlinMultiplatformExtension> {
|
configure<KotlinMultiplatformExtension> {
|
||||||
|
@ -12,9 +12,7 @@ import org.gradle.kotlin.dsl.withType
|
|||||||
open class KSciencePublishPlugin : Plugin<Project> {
|
open class KSciencePublishPlugin : Plugin<Project> {
|
||||||
|
|
||||||
override fun apply(project: Project): Unit = project.run{
|
override fun apply(project: Project): Unit = project.run{
|
||||||
|
|
||||||
plugins.apply("maven-publish")
|
plugins.apply("maven-publish")
|
||||||
|
|
||||||
registerKScienceExtension()
|
registerKScienceExtension()
|
||||||
|
|
||||||
afterEvaluate {
|
afterEvaluate {
|
||||||
|
@ -14,7 +14,7 @@ object KScienceVersions {
|
|||||||
|
|
||||||
object Serialization{
|
object Serialization{
|
||||||
const val xmlVersion = "0.80.0-RC"//to be fixed
|
const val xmlVersion = "0.80.0-RC"//to be fixed
|
||||||
const val yamlVersion = "0.16.1"
|
const val yamlVersion = "0.21.0"
|
||||||
const val bsonVersion = "0.2.1"
|
const val bsonVersion = "0.4.1-rc"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user