Skip to content

Commit

Permalink
Merge branch 'main' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoocampoh authored May 24, 2023
2 parents 4ba0dd5 + e1b24a6 commit 448df13
Show file tree
Hide file tree
Showing 13 changed files with 229 additions and 182 deletions.
38 changes: 0 additions & 38 deletions .github/workflows/gradle-publish-artifactory.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '11'
java-version: '17'
distribution: 'adopt'

- name: Grant execute permission for gradlew
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ jobs:
- name: "Setup Java"
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'
java-version: '17'
# Populates ARTIFACTORY_USERNAME and ARTIFACTORY_API_KEY with
# temporary username/password for publishing to packages.atlassian.com
- name: Get publish token
Expand Down
48 changes: 35 additions & 13 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@

import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
kotlin("jvm") version "1.8.20"
kotlin("jvm") version "1.8.21"
id("org.jetbrains.dokka") version "1.8.10"
id("maven-publish")
id("signing")
application
id("org.jlleitschuh.gradle.ktlint") version "11.3.1"
id("org.jlleitschuh.gradle.ktlint") version "11.3.2"
}

repositories {
Expand All @@ -19,25 +19,47 @@ java {
}

dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.20")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.21")
implementation("commons-codec:commons-codec:1.15")
testImplementation(kotlin("test"))
testImplementation("io.mockk:mockk:1.13.4")
testImplementation("io.kotest:kotest-assertions-core-jvm:5.5.5")
testImplementation("io.kotest:kotest-framework-datatest:5.5.5")
testImplementation("io.kotest:kotest-runner-junit5-jvm:5.5.5")
testImplementation("io.kotest:kotest-property-jvm:5.5.5")
testImplementation("io.kotest.extensions:kotest-property-arrow-jvm:1.3.0")
testImplementation("io.kotest.extensions:kotest-assertions-arrow-jvm:1.3.0")
testImplementation("io.mockk:mockk:1.13.5")
testImplementation("io.kotest:kotest-assertions-core:5.6.2")
testImplementation("io.kotest:kotest-framework-datatest:5.6.2")
testImplementation("io.kotest:kotest-runner-junit5:5.6.2")
testImplementation("io.kotest:kotest-property:5.6.2")
testImplementation("io.kotest.extensions:kotest-property-arrow:1.3.3")
testImplementation("io.kotest.extensions:kotest-assertions-arrow:1.3.3")
}

group = "com.atlassian"
version = "2.0.0"
description = "onetime"
java.sourceCompatibility = JavaVersion.VERSION_1_10

tasks.withType<JavaCompile>() {
val javaVersion = JavaVersion.VERSION_17

tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
sourceCompatibility = javaVersion.toString()
targetCompatibility = javaVersion.toString()
}

tasks.withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "17"
freeCompilerArgs += listOf(
"-progressive",
"-java-parameters",
"-opt-in=kotlin.time.ExperimentalTime",
"-opt-in=kotlin.RequiresOptIn"
)

// https://youtrack.jetbrains.com/issue/KTIJ-1224
// This is really an IDE bug.
// Without explicit languageVersion the Gradle build does compile 1.5 structures (sealed interfaces). So, for Gradle the value is 1.5.
// The wrong value is only in IDE settings.
languageVersion = "1.8"
apiVersion = "1.8"
}
}

tasks {
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
3 changes: 2 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit 448df13

Please sign in to comment.