Skip to content

Commit

Permalink
Release 0.17.2 (#1610)
Browse files Browse the repository at this point in the history
* Update plugin com.android.application to v8.7.3 (#1604)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update plugin com.android.library to v8.7.3 (#1605)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency com.lemonappdev:konsist to v0.17.1 (#1603)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update ktor monorepo to v3.0.2 (#1606)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency com.pinterest.ktlint:ktlint-cli to v1.5.0 (#1607)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Allow Layer consecutive dots in middle of package name

* Update Version to 0.17.2

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • Loading branch information
igorwojda and renovate[bot] authored Dec 4, 2024
1 parent 8cdaa81 commit 89662ce
Show file tree
Hide file tree
Showing 28 changed files with 38 additions and 56 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,20 @@ tests ([JUnit](https://junit.org/) / [Kotest](https://kotest.io/)).

Gradle Kotlin:
```kotlin
testImplementation("com.lemonappdev:konsist:0.17.1")
testImplementation("com.lemonappdev:konsist:0.17.2")
```

Gradle Groovy:
```groovy
testImplementation "com.lemonappdev:konsist:0.17.1"
testImplementation "com.lemonappdev:konsist:0.17.2"
```

Maven:
```xml
<dependency>
<groupId>com.lemonappdev</groupId>
<artifactId>konsist</artifactId>
<version>0.17.1</version>
<version>0.17.2</version>
<scope>test</scope>
</dependency>
```
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ org.gradle.jvmargs=-Xms512M -Xmx4g -Dkotlin.daemon.jvm.options="-Xmx1g"
org.gradle.parallel=true
org.gradle.daemon=true

konsist.version=0.17.1
konsist.version=0.17.2
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[versions]
kotlinVersion = "2.0.21"
jUnitVersion = "5.11.3"
ktlintCliVersion = "1.4.1"
ktlintCliVersion = "1.5.0"
coroutinesVersion = "1.9.0"

[libraries]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,6 @@ data class Layer(
)
}

// Check for consecutive dots in middle (excluding the start and end ..)
if (effectivePackage.contains("..")) {
throw IllegalArgumentException(
"Invalid package definition for layer '$name'. " +
"Package can only end with '..'. Current definition: $rootPackage",
)
}

// Split and validate segments
val segments =
effectivePackage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,16 +90,6 @@ class LayerTest {
"com.example\$#.."
}

@Test
fun `create Layer with consecutive dots in middle should throw exception`() {
// when
val func = { Layer(name = "name", rootPackage = "com..example..") }

// then
func shouldThrow IllegalArgumentException::class withMessage
"Invalid package definition for layer 'name'. Package can only end with '..'. Current definition: com..example.."
}

@Test
fun `create Layer with package starting with two dots should not throw exception`() {
// when
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '8.7.2' apply false
id 'com.android.library' version '8.7.2' apply false
id 'com.android.application' version '8.7.3' apply false
id 'com.android.library' version '8.7.3' apply false
id 'org.jetbrains.kotlin.android' version '2.0.21' apply false
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ dependencies {
// Add JUnit dependency
testImplementation 'junit:junit:4.13.2'

testImplementation 'com.lemonappdev:konsist:0.17.0'
testImplementation 'com.lemonappdev:konsist:0.17.1'

androidTestImplementation 'androidx.test.ext:junit:1.2.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,5 @@ dependencies {
implementation("org.junit.jupiter:junit-jupiter-params:5.11.3")

// Add Konsist dependency
testImplementation("com.lemonappdev:konsist:0.17.0")
testImplementation("com.lemonappdev:konsist:0.17.1")
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '8.7.2' apply false
id 'com.android.library' version '8.7.2' apply false
id 'com.android.application' version '8.7.3' apply false
id 'com.android.library' version '8.7.3' apply false
id 'org.jetbrains.kotlin.android' version '2.0.21' apply false
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ dependencies {
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:5.11.3"

// Add Konsist dependency
testImplementation 'com.lemonappdev:konsist:0.17.0'
testImplementation 'com.lemonappdev:konsist:0.17.1'

androidTestImplementation 'androidx.test.ext:junit:1.2.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '8.7.2' apply false
id 'com.android.library' version '8.7.2' apply false
id 'com.android.application' version '8.7.3' apply false
id 'com.android.library' version '8.7.3' apply false
id 'org.jetbrains.kotlin.android' version '2.0.21' apply false
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ dependencies {
testImplementation "io.kotest:kotest-runner-junit5:5.9.1"

// Add Konsist dependency
testImplementation 'com.lemonappdev:konsist:0.17.0'
testImplementation 'com.lemonappdev:konsist:0.17.1'

}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id("com.android.application") version "8.7.2" apply false
id("com.android.library") version "8.7.2" apply false
id("com.android.application") version "8.7.3" apply false
id("com.android.library") version "8.7.3" apply false
id("org.jetbrains.kotlin.android") version "2.0.21" apply false
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ dependencies {
testImplementation("junit:junit:4.13.2")

// Add Konsist dependency
testImplementation("com.lemonappdev:konsist:0.17.0")
testImplementation("com.lemonappdev:konsist:0.17.1")
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id("com.android.application") version "8.7.2" apply false
id("com.android.library") version "8.7.2" apply false
id("com.android.application") version "8.7.3" apply false
id("com.android.library") version "8.7.3" apply false
id("org.jetbrains.kotlin.android") version "2.0.21" apply false
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ dependencies {
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.11.3")

// Add Konsist dependency
testImplementation("com.lemonappdev:konsist:0.17.0")
testImplementation("com.lemonappdev:konsist:0.17.1")
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id("com.android.application") version "8.7.2" apply false
id("com.android.library") version "8.7.2" apply false
id("com.android.application") version "8.7.3" apply false
id("com.android.library") version "8.7.3" apply false
id("org.jetbrains.kotlin.android") version "2.0.21" apply false
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ dependencies {
testImplementation("io.kotest:kotest-runner-junit5:5.9.1")

// Add Konsist dependency
testImplementation("com.lemonappdev:konsist:0.17.0")
testImplementation("com.lemonappdev:konsist:0.17.1")
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ kotlin {
}
val jvmMain by getting {
dependencies {
implementation("io.ktor:ktor-server-netty:3.0.1")
implementation("io.ktor:ktor-server-html-builder-jvm:3.0.1")
implementation("io.ktor:ktor-server-netty:3.0.2")
implementation("io.ktor:ktor-server-html-builder-jvm:3.0.2")
implementation("org.jetbrains.kotlinx:kotlinx-html-jvm:0.11.0")
}
}
val jvmTest by getting {
dependencies {
implementation("com.lemonappdev:konsist:0.17.0")
implementation("com.lemonappdev:konsist:0.17.1")
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ tasks.withType<Test> {
}

dependencies {
testImplementation("com.lemonappdev:konsist:0.17.0")
testImplementation("com.lemonappdev:konsist:0.17.1")
testImplementation("org.junit.jupiter:junit-jupiter-engine:5.11.3")
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ kotlin {
}
val jvmMain by getting {
dependencies {
implementation("io.ktor:ktor-server-netty:3.0.1")
implementation("io.ktor:ktor-server-html-builder-jvm:3.0.1")
implementation("io.ktor:ktor-server-netty:3.0.2")
implementation("io.ktor:ktor-server-html-builder-jvm:3.0.2")
implementation("org.jetbrains.kotlinx:kotlinx-html-jvm:0.11.0")
}
}
val jvmTest by getting {
dependencies {
implementation("com.lemonappdev:konsist:0.17.0")
implementation("com.lemonappdev:konsist:0.17.1")
implementation("io.kotest:kotest-runner-junit5:5.9.1")
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ tasks.withType<Test> {
}

dependencies {
testImplementation("com.lemonappdev:konsist:0.17.0")
testImplementation("com.lemonappdev:konsist:0.17.1")
testImplementation("io.kotest:kotest-runner-junit5:5.9.1")
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ testing {
implementation project()

// Add Konsist dependency
implementation "com.lemonappdev:konsist:0.17.0"
implementation "com.lemonappdev:konsist:0.17.1"

// Add junit-jupiter-params dependency (required for dynamic Tests)
implementation "org.junit.jupiter:junit-jupiter-params:5.11.3"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ testing {
implementation project()

// Add Konsist dependency
implementation "com.lemonappdev:konsist:0.17.0"
implementation "com.lemonappdev:konsist:0.17.1"

// Add Kotest dependency
implementation "io.kotest:kotest-runner-junit5:5.9.1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ testing {
implementation(project())

// Add Konsist dependency
implementation("com.lemonappdev:konsist:0.17.0")
implementation("com.lemonappdev:konsist:0.17.1")

// Add junit-jupiter-params dependency (required for dynamic Tests)
implementation("org.junit.jupiter:junit-jupiter-params:5.11.3")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ testing {
implementation(project())

// Add Konsist dependency
implementation("com.lemonappdev:konsist:0.17.0")
implementation("com.lemonappdev:konsist:0.17.1")

// Add Kotest dependency
implementation("io.kotest:kotest-runner-junit5-jvm:5.9.1")
Expand Down
2 changes: 1 addition & 1 deletion samples/starter-projects/spring-maven-junit5/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
<dependency>
<groupId>com.lemonappdev</groupId>
<artifactId>konsist</artifactId>
<version>0.17.0</version>
<version>0.17.1</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down
2 changes: 1 addition & 1 deletion samples/starter-projects/spring-maven-kotest/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
<dependency>
<groupId>com.lemonappdev</groupId>
<artifactId>konsist</artifactId>
<version>0.17.0</version>
<version>0.17.1</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down

0 comments on commit 89662ce

Please sign in to comment.