Skip to content

Commit 98b4a18

Browse files
authored
Merge pull request #33 from Whathecode/develop
Release 1.0.0-alpha.5
2 parents 43c2b3d + 4f04b3f commit 98b4a18

File tree

18 files changed

+1719
-502
lines changed

18 files changed

+1719
-502
lines changed

buildSrc/build.gradle.kts renamed to build-logic/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ repositories {
88
}
99

1010
dependencies {
11-
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.20")
12-
implementation("org.jetbrains.dokka:dokka-gradle-plugin:1.6.21")
11+
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.23")
12+
implementation("org.jetbrains.dokka:dokka-gradle-plugin:1.9.20")
1313
}
File renamed without changes.

buildSrc/src/main/kotlin/interval.library-conventions.gradle.kts renamed to build-logic/src/main/kotlin/interval.library-conventions.gradle.kts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,15 @@ kotlin {
2121
compilations.all {
2222
kotlinOptions.jvmTarget = "1.8"
2323
}
24-
withJava()
2524
testRuns["test"].executionTask.configure {
2625
useJUnitPlatform()
2726
}
2827
}
29-
js(BOTH) {
30-
browser { }
28+
js(IR) {
29+
browser {
30+
useEsModules()
31+
}
32+
binaries.executable()
3133
}
3234
val hostOs = System.getProperty("os.name")
3335
val isMingwX64 = hostOs.startsWith("Windows")
@@ -83,7 +85,7 @@ publishing {
8385
repositories {
8486
maven {
8587
name = "local"
86-
url = uri("$buildDir/repo")
88+
url = uri("${layout.buildDirectory}/repo")
8789
}
8890
}
8991
publications.filterIsInstance<MavenPublication>().forEach {

build.gradle.kts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ plugins {
22
id("io.github.gradle-nexus.publish-plugin") version "1.1.0"
33
}
44

5+
repositories {
6+
mavenCentral()
7+
gradlePluginPortal()
8+
}
9+
510
// Publish configuration.
611
// For signing and publishing to work, a 'publish.properties' file needs to be added to the root containing:
712
// The OpenPGP credentials to sign all artifacts:
@@ -16,7 +21,7 @@ if (publishPropertiesFile.exists()) {
1621
publishProperties.load(java.io.FileInputStream(publishPropertiesFile))
1722
}
1823
group = "io.github.whathecode.kotlinx.interval"
19-
version = "1.0.0-alpha.4"
24+
version = "1.0.0-alpha.5"
2025
nexusPublishing {
2126
repositories {
2227
sonatype {

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
kotlin.js.generate.executable.default=false
1+
kotlin.mpp.applyDefaultHierarchyTemplate=false
22

33
# Prevent out of memory errors.
4-
org.gradle.jvmargs=-XX:MaxMetaspaceSize=1024m
4+
org.gradle.jvmargs=-XX:MaxMetaspaceSize=1024m
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

kotlin-js-store/yarn.lock

Lines changed: 1315 additions & 466 deletions
Large diffs are not rendered by default.

kotlinx.interval.datetime/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ kotlin {
1919
commonMain {
2020
dependencies {
2121
api(project(":kotlinx-interval"))
22-
implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.3.2")
22+
implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.5.0")
2323
}
2424
}
2525
commonTest {
2626
dependencies {
27-
implementation(project(":kotlinx-interval-test"))
27+
implementation(project(":kotlinx-interval-testcases"))
2828
}
2929
}
3030
}

kotlinx.interval.datetime/src/commonTest/kotlin/Readme.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@file:Suppress( "UNUSED_VARIABLE" )
2+
13
package io.github.whathecode.kotlinx.interval.datetime
24

35
import kotlinx.datetime.Clock

0 commit comments

Comments
 (0)