Skip to content

Commit

Permalink
Upgrade kotlin to 1.7.10 (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
benasher44 authored Jul 14, 2022
1 parent 3890102 commit abdecd1
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/), and this
project adheres to [Semantic Versioning](https://semver.org/).

## [0.5.0] - 2022-07-13
### Changed
- Upgrade to Kotlin 1.7.10 (#126)

## [0.4.1] - 2022-06-04
### Changed
- Add `watchosX64` target (#123)
Expand Down
11 changes: 10 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import org.jetbrains.kotlin.gradle.tasks.AbstractKotlinCompileTool
import org.jetbrains.kotlin.konan.target.HostManager

plugins {
kotlin("multiplatform") version "1.6.21"
kotlin("multiplatform") version "1.7.10"
id("org.jetbrains.dokka") version "0.9.18"
id("maven-publish")
id("signing")
Expand Down Expand Up @@ -209,9 +210,17 @@ val generateProjDirValTask = tasks.register("generateProjectDirectoryVal") {
kotlin.sourceSets.named("commonTest") {
this.kotlin.srcDir(projectDirGenRoot)
}

// Ensure this runs before any test compile task
tasks.withType<AbstractCompile>().configureEach {
if (name.toLowerCase().contains("test")) {
dependsOn(generateProjDirValTask)
}
}

tasks.withType<AbstractKotlinCompileTool<*>>().configureEach {
if (name.toLowerCase().contains("test")) {
dependsOn(generateProjDirValTask)
}
}

3 changes: 1 addition & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kotlin.code.style=official
kotlin.incremental=true

GROUP=com.benasher44
VERSION=0.4.1
VERSION=0.5.0

POM_URL=https://github.com/benasher44/uuid/
POM_SCM_URL=https://github.com/benasher44/uuid/
Expand All @@ -20,5 +20,4 @@ POM_NAME=UUID
POM_DESCRIPTION=A Kotlin multiplatform implementation of a v4 RFC4122 UUID


kotlin.mpp.enableGranularSourceSetsMetadata=true
kotlin.mpp.enableCompatibilityMetadataVariant=true

0 comments on commit abdecd1

Please sign in to comment.