Gradle plugin 0.8.0

This commit is contained in:
Alexander Nozik 2021-02-21 16:13:40 +03:00
parent 1ad305ba34
commit dd5ef4810f
31 changed files with 1410 additions and 1450 deletions
.github/workflows
README.mdbuild.gradle.kts
examples
gradle/wrapper
kmath-ast
kmath-commons
kmath-complex
README.mdbuild.gradle.kts
src/commonMain/kotlin/space/kscience/kmath/complex
kmath-core
kmath-coroutines
kmath-dimensions
kmath-ejml
kmath-for-real
kmath-functions
kmath-geometry
kmath-histograms
kmath-kotlingrad
kmath-memory
kmath-nd4j
kmath-stat
kmath-viktor
settings.gradle.kts

@ -1,4 +1,4 @@
name: Bintray Publish name: Gradle release
on: on:
release: release:

@ -257,8 +257,8 @@ repositories {
} }
dependencies { dependencies {
api("kscience.kmath:kmath-core:0.2.0-dev-7") api("kscience.kmath:kmath-core:0.2.0")
// api("kscience.kmath:kmath-core-jvm:0.2.0-dev-7") for jvm-specific version // api("kscience.kmath:kmath-core-jvm:0.2.0") for jvm-specific version
} }
``` ```

@ -1,7 +1,6 @@
import ru.mipt.npm.gradle.KSciencePublishPlugin
plugins { plugins {
id("ru.mipt.npm.project") id("ru.mipt.npm.gradle.project")
} }
internal val kmathVersion: String by extra("0.2.0") internal val kmathVersion: String by extra("0.2.0")
@ -26,7 +25,7 @@ allprojects {
} }
subprojects { subprojects {
if (name.startsWith("kmath")) apply<KSciencePublishPlugin>() if (name.startsWith("kmath")) apply<ru.mipt.npm.gradle.KSciencePublishingPlugin>()
} }
readme { readme {
@ -37,4 +36,8 @@ ksciencePublish {
spaceRepo = "https://maven.pkg.jetbrains.space/mipt-npm/p/sci/maven" spaceRepo = "https://maven.pkg.jetbrains.space/mipt-npm/p/sci/maven"
bintrayRepo = "kscience" bintrayRepo = "kscience"
githubProject = "kmath" githubProject = "kmath"
}
apiValidation{
nonPublicMarkers.add("space.kscience.kmath.misc.UnstableKMathAPI")
} }

@ -11,6 +11,7 @@ sourceSets.register("benchmarks")
repositories { repositories {
jcenter() jcenter()
maven("https://repo.kotlin.link")
maven("https://clojars.org/repo") maven("https://clojars.org/repo")
maven("https://dl.bintray.com/egor-bogomolov/astminer/") maven("https://dl.bintray.com/egor-bogomolov/astminer/")
maven("https://dl.bintray.com/hotkeytlt/maven") maven("https://dl.bintray.com/hotkeytlt/maven")

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.1-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.2-bin.zip
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists

@ -12,7 +12,7 @@ This subproject implements the following features:
> #### Artifact: > #### Artifact:
> >
> This module artifact: `space.kscience:kmath-ast:0.2.0-dev-7`. > This module artifact: `space.kscience:kmath-ast:0.2.0`.
> >
> Bintray release version: [ ![Download](https://api.bintray.com/packages/mipt-npm/kscience/kmath-ast/images/download.svg) ](https://bintray.com/mipt-npm/kscience/kmath-ast/_latestVersion) > Bintray release version: [ ![Download](https://api.bintray.com/packages/mipt-npm/kscience/kmath-ast/images/download.svg) ](https://bintray.com/mipt-npm/kscience/kmath-ast/_latestVersion)
> >
@ -31,7 +31,7 @@ This subproject implements the following features:
> } > }
> >
> dependencies { > dependencies {
> implementation 'space.kscience:kmath-ast:0.2.0-dev-7' > implementation 'space.kscience:kmath-ast:0.2.0'
> } > }
> ``` > ```
> **Gradle Kotlin DSL:** > **Gradle Kotlin DSL:**
@ -47,7 +47,7 @@ This subproject implements the following features:
> } > }
> >
> dependencies { > dependencies {
> implementation("space.kscience:kmath-ast:0.2.0-dev-7") > implementation("space.kscience:kmath-ast:0.2.0")
> } > }
> ``` > ```

@ -1,7 +1,7 @@
import ru.mipt.npm.gradle.Maturity import ru.mipt.npm.gradle.Maturity
plugins { plugins {
id("ru.mipt.npm.mpp") id("ru.mipt.npm.gradle.mpp")
} }
kotlin.js { kotlin.js {
@ -46,6 +46,9 @@ kotlin.sourceSets {
} }
} }
//Workaround for https://github.com/Kotlin/dokka/issues/1455
tasks.getByName("dokkaHtml").dependsOn(tasks.getByName("build"))
readme { readme {
maturity = Maturity.PROTOTYPE maturity = Maturity.PROTOTYPE
propertyByTemplate("artifact", rootProject.file("docs/templates/ARTIFACT-TEMPLATE.md")) propertyByTemplate("artifact", rootProject.file("docs/templates/ARTIFACT-TEMPLATE.md"))

@ -1,5 +1,5 @@
plugins { plugins {
id("ru.mipt.npm.jvm") id("ru.mipt.npm.gradle.jvm")
} }
description = "Commons math binding for kmath" description = "Commons math binding for kmath"

@ -8,7 +8,7 @@ Complex and hypercomplex number systems in KMath:
> #### Artifact: > #### Artifact:
> >
> This module artifact: `space.kscience:kmath-complex:0.2.0-dev-7`. > This module artifact: `space.kscience:kmath-complex:0.2.0`.
> >
> Bintray release version: [ ![Download](https://api.bintray.com/packages/mipt-npm/kscience/kmath-complex/images/download.svg) ](https://bintray.com/mipt-npm/kscience/kmath-complex/_latestVersion) > Bintray release version: [ ![Download](https://api.bintray.com/packages/mipt-npm/kscience/kmath-complex/images/download.svg) ](https://bintray.com/mipt-npm/kscience/kmath-complex/_latestVersion)
> >
@ -27,7 +27,7 @@ Complex and hypercomplex number systems in KMath:
> } > }
> >
> dependencies { > dependencies {
> implementation 'space.kscience:kmath-complex:0.2.0-dev-7' > implementation 'space.kscience:kmath-complex:0.2.0'
> } > }
> ``` > ```
> **Gradle Kotlin DSL:** > **Gradle Kotlin DSL:**
@ -43,6 +43,6 @@ Complex and hypercomplex number systems in KMath:
> } > }
> >
> dependencies { > dependencies {
> implementation("space.kscience:kmath-complex:0.2.0-dev-7") > implementation("space.kscience:kmath-complex:0.2.0")
> } > }
> ``` > ```

@ -1,8 +1,8 @@
import ru.mipt.npm.gradle.Maturity import ru.mipt.npm.gradle.Maturity
plugins { plugins {
id("ru.mipt.npm.mpp") id("ru.mipt.npm.gradle.mpp")
id("ru.mipt.npm.native") id("ru.mipt.npm.gradle.native")
} }
kotlin.sourceSets { kotlin.sourceSets {

@ -183,8 +183,10 @@ public object QuaternionField : Field<Quaternion>, Norm<Quaternion, Quaternion>,
* @property y The third component. * @property y The third component.
* @property z The fourth component. * @property z The fourth component.
*/ */
public data class Quaternion(val w: Double, val x: Double, val y: Double, val z: Double) : @OptIn(UnstableKMathAPI::class)
FieldElement<Quaternion, QuaternionField> { public data class Quaternion(
val w: Double, val x: Double, val y: Double, val z: Double,
) : FieldElement<Quaternion, QuaternionField> {
public constructor(w: Number, x: Number, y: Number, z: Number) : this( public constructor(w: Number, x: Number, y: Number, z: Number) : this(
w.toDouble(), w.toDouble(),
x.toDouble(), x.toDouble(),

@ -15,7 +15,7 @@ performance calculations to code generation.
> #### Artifact: > #### Artifact:
> >
> This module artifact: `space.kscience:kmath-core:0.2.0-dev-7`. > This module artifact: `space.kscience:kmath-core:0.2.0`.
> >
> Bintray release version: [ ![Download](https://api.bintray.com/packages/mipt-npm/kscience/kmath-core/images/download.svg) ](https://bintray.com/mipt-npm/kscience/kmath-core/_latestVersion) > Bintray release version: [ ![Download](https://api.bintray.com/packages/mipt-npm/kscience/kmath-core/images/download.svg) ](https://bintray.com/mipt-npm/kscience/kmath-core/_latestVersion)
> >
@ -34,7 +34,7 @@ performance calculations to code generation.
> } > }
> >
> dependencies { > dependencies {
> implementation 'space.kscience:kmath-core:0.2.0-dev-7' > implementation 'space.kscience:kmath-core:0.2.0'
> } > }
> ``` > ```
> **Gradle Kotlin DSL:** > **Gradle Kotlin DSL:**
@ -50,6 +50,6 @@ performance calculations to code generation.
> } > }
> >
> dependencies { > dependencies {
> implementation("space.kscience:kmath-core:0.2.0-dev-7") > implementation("space.kscience:kmath-core:0.2.0")
> } > }
> ``` > ```

File diff suppressed because it is too large Load Diff

@ -1,8 +1,8 @@
import ru.mipt.npm.gradle.Maturity import ru.mipt.npm.gradle.Maturity
plugins { plugins {
id("ru.mipt.npm.mpp") id("ru.mipt.npm.gradle.mpp")
id("ru.mipt.npm.native") id("ru.mipt.npm.gradle.native")
} }
kotlin.sourceSets { kotlin.sourceSets {

@ -1,4 +1,4 @@
plugins { id("ru.mipt.npm.mpp") } plugins { id("ru.mipt.npm.gradle.mpp") }
kotlin.sourceSets { kotlin.sourceSets {
all { all {

@ -1,6 +1,6 @@
plugins { plugins {
id("ru.mipt.npm.mpp") id("ru.mipt.npm.gradle.mpp")
id("ru.mipt.npm.native") id("ru.mipt.npm.gradle.native")
} }
description = "A proof of concept module for adding type-safe dimensions to structures" description = "A proof of concept module for adding type-safe dimensions to structures"

@ -1,5 +1,5 @@
plugins { plugins {
id("ru.mipt.npm.jvm") id("ru.mipt.npm.gradle.jvm")
} }
dependencies { dependencies {

@ -7,7 +7,7 @@
> #### Artifact: > #### Artifact:
> >
> This module artifact: `space.kscience:kmath-for-real:0.2.0-dev-7`. > This module artifact: `space.kscience:kmath-for-real:0.2.0`.
> >
> Bintray release version: [ ![Download](https://api.bintray.com/packages/mipt-npm/kscience/kmath-for-real/images/download.svg) ](https://bintray.com/mipt-npm/kscience/kmath-for-real/_latestVersion) > Bintray release version: [ ![Download](https://api.bintray.com/packages/mipt-npm/kscience/kmath-for-real/images/download.svg) ](https://bintray.com/mipt-npm/kscience/kmath-for-real/_latestVersion)
> >
@ -26,7 +26,7 @@
> } > }
> >
> dependencies { > dependencies {
> implementation 'space.kscience:kmath-for-real:0.2.0-dev-7' > implementation 'space.kscience:kmath-for-real:0.2.0'
> } > }
> ``` > ```
> **Gradle Kotlin DSL:** > **Gradle Kotlin DSL:**
@ -42,6 +42,6 @@
> } > }
> >
> dependencies { > dependencies {
> implementation("space.kscience:kmath-for-real:0.2.0-dev-7") > implementation("space.kscience:kmath-for-real:0.2.0")
> } > }
> ``` > ```

@ -1,5 +1,5 @@
plugins { plugins {
id("ru.mipt.npm.mpp") id("ru.mipt.npm.gradle.mpp")
} }
kotlin.sourceSets.commonMain { kotlin.sourceSets.commonMain {

@ -10,7 +10,7 @@ Functions and interpolations:
> #### Artifact: > #### Artifact:
> >
> This module artifact: `space.kscience:kmath-functions:0.2.0-dev-7`. > This module artifact: `space.kscience:kmath-functions:0.2.0`.
> >
> Bintray release version: [ ![Download](https://api.bintray.com/packages/mipt-npm/kscience/kmath-functions/images/download.svg) ](https://bintray.com/mipt-npm/kscience/kmath-functions/_latestVersion) > Bintray release version: [ ![Download](https://api.bintray.com/packages/mipt-npm/kscience/kmath-functions/images/download.svg) ](https://bintray.com/mipt-npm/kscience/kmath-functions/_latestVersion)
> >
@ -29,7 +29,7 @@ Functions and interpolations:
> } > }
> >
> dependencies { > dependencies {
> implementation 'space.kscience:kmath-functions:0.2.0-dev-7' > implementation 'space.kscience:kmath-functions:0.2.0'
> } > }
> ``` > ```
> **Gradle Kotlin DSL:** > **Gradle Kotlin DSL:**
@ -45,6 +45,6 @@ Functions and interpolations:
> } > }
> >
> dependencies { > dependencies {
> implementation("space.kscience:kmath-functions:0.2.0-dev-7") > implementation("space.kscience:kmath-functions:0.2.0")
> } > }
> ``` > ```

@ -1,5 +1,5 @@
plugins { plugins {
id("ru.mipt.npm.mpp") id("ru.mipt.npm.gradle.mpp")
} }
kotlin.sourceSets.commonMain { kotlin.sourceSets.commonMain {

@ -1,4 +1,4 @@
plugins { id("ru.mipt.npm.mpp") } plugins { id("ru.mipt.npm.gradle.mpp") }
kotlin.sourceSets.commonMain { kotlin.sourceSets.commonMain {
dependencies { dependencies {

@ -1,5 +1,5 @@
plugins { plugins {
id("ru.mipt.npm.mpp") id("ru.mipt.npm.gradle.mpp")
} }
kscience { kscience {

@ -1,5 +1,5 @@
plugins { plugins {
id("ru.mipt.npm.jvm") id("ru.mipt.npm.gradle.jvm")
} }
dependencies { dependencies {

@ -1,6 +1,6 @@
plugins { plugins {
id("ru.mipt.npm.mpp") id("ru.mipt.npm.gradle.mpp")
id("ru.mipt.npm.native") id("ru.mipt.npm.gradle.native")
} }
readme{ readme{

@ -9,7 +9,7 @@ This subproject implements the following features:
> #### Artifact: > #### Artifact:
> >
> This module artifact: `space.kscience:kmath-nd4j:0.2.0-dev-7`. > This module artifact: `space.kscience:kmath-nd4j:0.2.0`.
> >
> Bintray release version: [ ![Download](https://api.bintray.com/packages/mipt-npm/kscience/kmath-nd4j/images/download.svg) ](https://bintray.com/mipt-npm/kscience/kmath-nd4j/_latestVersion) > Bintray release version: [ ![Download](https://api.bintray.com/packages/mipt-npm/kscience/kmath-nd4j/images/download.svg) ](https://bintray.com/mipt-npm/kscience/kmath-nd4j/_latestVersion)
> >
@ -28,7 +28,7 @@ This subproject implements the following features:
> } > }
> >
> dependencies { > dependencies {
> implementation 'space.kscience:kmath-nd4j:0.2.0-dev-7' > implementation 'space.kscience:kmath-nd4j:0.2.0'
> } > }
> ``` > ```
> **Gradle Kotlin DSL:** > **Gradle Kotlin DSL:**
@ -44,7 +44,7 @@ This subproject implements the following features:
> } > }
> >
> dependencies { > dependencies {
> implementation("space.kscience:kmath-nd4j:0.2.0-dev-7") > implementation("space.kscience:kmath-nd4j:0.2.0")
> } > }
> ``` > ```

@ -1,7 +1,7 @@
import ru.mipt.npm.gradle.Maturity import ru.mipt.npm.gradle.Maturity
plugins { plugins {
id("ru.mipt.npm.jvm") id("ru.mipt.npm.gradle.jvm")
} }
dependencies { dependencies {

@ -1,5 +1,5 @@
plugins { plugins {
id("ru.mipt.npm.mpp") id("ru.mipt.npm.gradle.mpp")
} }
kotlin.sourceSets { kotlin.sourceSets {

@ -165,8 +165,6 @@ public final class space/kscience/kmath/viktor/ViktorNDStructure : space/kscienc
public fun getDimension ()I public fun getDimension ()I
public static fun getDimension-impl (Lorg/jetbrains/bio/viktor/F64Array;)I public static fun getDimension-impl (Lorg/jetbrains/bio/viktor/F64Array;)I
public final fun getF64Buffer ()Lorg/jetbrains/bio/viktor/F64Array; public final fun getF64Buffer ()Lorg/jetbrains/bio/viktor/F64Array;
public fun getFeature (Lkotlin/reflect/KClass;)Ljava/lang/Object;
public static fun getFeature-impl (Lorg/jetbrains/bio/viktor/F64Array;Lkotlin/reflect/KClass;)Ljava/lang/Object;
public fun getShape ()[I public fun getShape ()[I
public static fun getShape-impl (Lorg/jetbrains/bio/viktor/F64Array;)[I public static fun getShape-impl (Lorg/jetbrains/bio/viktor/F64Array;)[I
public fun hashCode ()I public fun hashCode ()I

@ -1,5 +1,5 @@
plugins { plugins {
id("ru.mipt.npm.jvm") id("ru.mipt.npm.gradle.jvm")
} }
description = "Binding for https://github.com/JetBrains-Research/viktor" description = "Binding for https://github.com/JetBrains-Research/viktor"

@ -1,5 +1,6 @@
pluginManagement { pluginManagement {
repositories { repositories {
mavenLocal()
gradlePluginPortal() gradlePluginPortal()
jcenter() jcenter()
maven("https://repo.kotlin.link") maven("https://repo.kotlin.link")
@ -7,15 +8,15 @@ pluginManagement {
maven("https://dl.bintray.com/kotlin/kotlinx") maven("https://dl.bintray.com/kotlin/kotlinx")
} }
val toolsVersion = "0.7.7" val toolsVersion = "0.8.0"
val kotlinVersion = "1.4.30" val kotlinVersion = "1.4.30"
plugins { plugins {
id("kotlinx.benchmark") version "0.2.0-dev-20" id("kotlinx.benchmark") version "0.2.0-dev-20"
id("ru.mipt.npm.project") version toolsVersion id("ru.mipt.npm.gradle.project") version toolsVersion
id("ru.mipt.npm.mpp") version toolsVersion id("ru.mipt.npm.gradle.mpp") version toolsVersion
id("ru.mipt.npm.jvm") version toolsVersion id("ru.mipt.npm.gradle.jvm") version toolsVersion
id("ru.mipt.npm.publish") version toolsVersion id("ru.mipt.npm.gradle.publish") version toolsVersion
kotlin("jvm") version kotlinVersion kotlin("jvm") version kotlinVersion
kotlin("plugin.allopen") version kotlinVersion kotlin("plugin.allopen") version kotlinVersion
} }