Skip to content

Commit

Permalink
Merge pull request #6 from illuzor/libs_update_2
Browse files Browse the repository at this point in the history
Libs update 2
  • Loading branch information
illuzor authored Dec 15, 2024
2 parents 1c7957a + 81218d9 commit 9cd3d10
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 20 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: '17'
java-version: '21'
distribution: 'temurin'
- name: Ktlint check
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/.gradle
/.idea
/.kotlin
/build
/out
28 changes: 13 additions & 15 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,17 +1,8 @@
buildscript {
repositories {
maven("https://plugins.gradle.org/m2/") // for ktlint-gradle plugin
}
dependencies {
classpath("org.jlleitschuh.gradle:ktlint-gradle")
}
}

plugins {
id("java")
id("org.jlleitschuh.gradle.ktlint") version "12.1.1"
id("org.jetbrains.kotlin.jvm") version "2.0.0"
id("org.jetbrains.intellij") version "1.17.3"
id("org.jlleitschuh.gradle.ktlint") version "12.1.2"
id("org.jetbrains.kotlin.jvm") version "2.0.21"
id("org.jetbrains.intellij") version "1.17.4"
}

group = "com.illuzor.afo"
Expand All @@ -21,8 +12,12 @@ repositories {
mavenCentral()
}

kotlin {
jvmToolchain(21)
}

ktlint {
version.set("1.3.0")
version.set("1.5.0")
}

intellij {
Expand All @@ -36,8 +31,11 @@ tasks {
sourceCompatibility = "11"
targetCompatibility = "11"
}

withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions.jvmTarget = "11"
compilerOptions {
jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_11)
}
}

withType<Test>().configureEach {
Expand All @@ -46,7 +44,7 @@ tasks {
}

dependencies {
testImplementation(platform("org.junit:junit-bom:5.10.2"))
testImplementation(platform("org.junit:junit-bom:5.11.3"))
testImplementation("org.junit.jupiter:junit-jupiter-params")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
}
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
5 changes: 4 additions & 1 deletion gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
#

##############################################################################
#
Expand Down Expand Up @@ -84,7 +86,8 @@ done
# shellcheck disable=SC2034
APP_BASE_NAME=${0##*/}
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
' "$PWD" ) || exit

# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum
Expand Down
2 changes: 2 additions & 0 deletions gradlew.bat
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
@rem See the License for the specific language governing permissions and
@rem limitations under the License.
@rem
@rem SPDX-License-Identifier: Apache-2.0
@rem

@if "%DEBUG%"=="" @echo off
@rem ##########################################################################
Expand Down
7 changes: 7 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
rootProject.name = "afo"

pluginManagement {
repositories {
mavenCentral()
gradlePluginPortal()
}
}
1 change: 0 additions & 1 deletion src/main/kotlin/com/illuzor/afo/ext/String.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import java.util.regex.Pattern

private const val MODULE_REGEXP = "['\"]:(.+?)['\"]"

@OptIn(ExperimentalStdlibApi::class)
internal fun String.extractModules(): List<String> {
val matcher = Pattern.compile(MODULE_REGEXP).matcher(this)

Expand Down

0 comments on commit 9cd3d10

Please sign in to comment.