Skip to content

Commit 1890f91

Browse files
authored
Bumped importClasses plugin (#135)
1 parent 734c950 commit 1890f91

File tree

8 files changed

+22
-15
lines changed

8 files changed

+22
-15
lines changed

gradle/libs.versions.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@ android = "8.8.0"
44

55
[libraries]
66
apache-bcel = { module = "org.apache.bcel:bcel", version = "6.10.0" }
7-
jgit = { module = "org.eclipse.jgit:org.eclipse.jgit", version = "6.10.0.202406032230-r" }
7+
jgit = { module = "org.eclipse.jgit:org.eclipse.jgit", version = "7.1.0.202411261347-r" }
88
junit-bom = { module = "org.junit:junit-bom", version = "5.11.4" }
99
junit-params = { module = "org.junit.jupiter:junit-jupiter-params" }
1010
kotlin-reflect = { module = "org.jetbrains.kotlin:kotlin-reflect", version.ref = "kotlin" }
1111
kotlin-plugin-api = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin-api", version.ref = "kotlin" }
1212
kotlin-plugin-compiler-api = { module = "org.jetbrains.kotlin:kotlin-compiler", version.ref = "kotlin" }
1313
kotlin-test = { module = "org.jetbrains.kotlin:kotlin-test", version.ref = "kotlin" }
14-
slf4j = { module = "org.slf4j:slf4j-api", version = "2.0.16" }
14+
slf4j-api = { module = "org.slf4j:slf4j-api", version = "2.0.16" }
1515

1616
[plugins]
1717
android-application = { id = "com.android.application", version.ref = "android" }
1818
android-library = { id = "com.android.library", version.ref = "android" }
1919
buildConfig = { id = "com.github.gmazzo.buildconfig", version = "5.5.1" }
20-
importClasses = { id = "io.github.gmazzo.importclasses", version = "1.0.3" }
20+
importClasses = { id = "io.github.gmazzo.importclasses", version = "1.1.1" }
2121
embeddedDependencies = { id = "io.github.gmazzo.dependencies.embedded", version = "1.0.3" }
2222
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
2323
kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }

plugins/base-plugin/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ plugins {
1010

1111
description = "CodeOwners Gradle Base Plugin"
1212

13-
java.toolchain.languageVersion.set(JavaLanguageVersion.of(11))
13+
java.toolchain.languageVersion.set(JavaLanguageVersion.of(17))
1414

1515
samWithReceiver.annotation(HasImplicitReceiver::class.java.name)
1616

plugins/buildSrc/src/main/kotlin/jvm-convention-module.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ plugins {
44
id("maven-central-publish")
55
}
66

7-
java.toolchain.languageVersion.set(JavaLanguageVersion.of(11))
7+
java.toolchain.languageVersion.set(JavaLanguageVersion.of(17))
88

99
plugins.withId("java") {
1010

plugins/buildSrc/src/main/kotlin/plugin-compatibility-test.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ val compatibilityTest by testing.suites.registering(JvmTestSuite::class) {
1010
}
1111
targets.configureEach {
1212
testTask.configure {
13-
javaLauncher = javaToolchains.launcherFor { languageVersion = JavaLanguageVersion.of(17) }
1413
workingDir(temporaryDir)
1514
}
1615
}

plugins/jvm-plugin/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ plugins {
1212

1313
description = "CodeOwners JVM Gradle Plugin"
1414

15-
java.toolchain.languageVersion.set(JavaLanguageVersion.of(11))
15+
java.toolchain.languageVersion.set(JavaLanguageVersion.of(17))
1616

1717
val pluginUnderTestImplementation by configurations.creating
1818

plugins/kotlin-plugin/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ plugins {
1212

1313
description = "CodeOwners Kotlin Gradle Plugin"
1414

15-
java.toolchain.languageVersion.set(JavaLanguageVersion.of(11))
15+
java.toolchain.languageVersion.set(JavaLanguageVersion.of(17))
1616

1717
val pluginUnderTestImplementation by configurations.creating
1818

plugins/matcher/build.gradle.kts

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,16 @@ plugins {
66

77
description = "CodeOwners Matcher Library"
88

9-
sourceSets.main {
10-
importClasses(libs.jgit) {
11-
repackageTo = "io.github.gmazzo.codeowners.matcher.jgit"
12-
keep("org.eclipse.jgit.ignore.FastIgnoreRule")
13-
include("**.class")
14-
}
9+
importClasses {
10+
repackageTo = "io.github.gmazzo.codeowners.matcher.jgit"
11+
keep("org.eclipse.jgit.ignore.FastIgnoreRule")
12+
include("**.class")
1513
}
1614

1715
dependencies {
18-
implementation(libs.slf4j) // transitive of libs.jgit, required by FastIgnoreRule
16+
importClasses(libs.jgit)
17+
importClassesLibraries(libs.slf4j.api)
18+
implementation(libs.slf4j.api)
19+
1920
testImplementation(libs.junit.params)
2021
}

plugins/settings.gradle.kts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
22

3+
pluginManagement {
4+
repositories {
5+
gradlePluginPortal()
6+
mavenLocal()
7+
}
8+
}
9+
310
dependencyResolutionManagement {
411
repositoriesMode = RepositoriesMode.PREFER_PROJECT
512
repositories {

0 commit comments

Comments
 (0)