-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3ada743
commit e6a015b
Showing
9 changed files
with
74 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
|
||
plugins { | ||
id 'java-library' | ||
id 'org.jetbrains.kotlin.jvm' apply true | ||
id 'biz.aQute.bnd.builder' | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
plugins { | ||
id 'org.jetbrains.kotlin.jvm' | ||
} | ||
|
||
tasks.named('compileKotlin') { | ||
doFirst { | ||
throw new InvalidUserCodeException("Module '${project.path}' should only contain Java classes") | ||
/** | ||
* Apply this plugin to projects that must be implemented in pure Java. | ||
* We cannot prevent such projects from applying the Kotlin Gradle plugin, | ||
* but we can throw an exception if they try to compile any Kotlin classes. | ||
*/ | ||
pluginManager.withPlugin('org.jetbrains.kotlin.jvm') { | ||
tasks.named('compileKotlin') { | ||
doFirst { | ||
throw new InvalidUserCodeException("Module '${project.path}' should only contain Java classes") | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
[versions] | ||
kotlinVersion = "1.8.21" | ||
|
||
# Logging | ||
slf4jVersion = "1.7.36" | ||
|
||
# Main implementation dependencies | ||
avroVersion = "1.11.3" | ||
commonsCompressVersion = "1.24.0" | ||
bouncycastleVersion = "1.73" | ||
javaxPersistenceApiVersion = "2.2" | ||
jacksonVersion = "2.15.2" | ||
|
||
# Testing | ||
assertjVersion = "3.24.+" | ||
junitVersion = "5.10.0" | ||
mockitoVersion = "5.3.+" | ||
mockitoKotlinVersion = "4.1.+" | ||
|
||
[libraries] | ||
slf4j = { group = "org.slf4j", name = "slf4j-api", version.ref = "slf4jVersion" } | ||
avro = { group = "org.apache.avro", name = "avro", version.ref = "avroVersion" } | ||
commons-compress = { group = "org.apache.commons", name = "commons-compress", version.ref = "commonsCompressVersion" } | ||
bouncycastle = { group = "org.bouncycastle", name = "bcprov-jdk18on", version.ref = "bouncycastleVersion" } | ||
javax-persistence-api = { group = "javax.persistence", name = "javax.persistence-api", version.ref = "javaxPersistenceApiVersion" } | ||
jackson-databind = { group = "com.fasterxml.jackson.core", name = "jackson-databind", version.ref = "jacksonVersion" } | ||
jackson-kotlin = { group = "com.fasterxml.jackson.module", name = "jackson-module-kotlin", version.ref = "jacksonVersion" } | ||
jackson-yaml = { group = "com.fasterxml.jackson.module", name = "jackson-dataformat-yaml", version.ref = "jacksonVersion" } | ||
assertj-core = { group = "org.assertj", name = "assertj-core", version.ref = "assertjVersion" } | ||
junit = { group = "org.junit.jupiter", name = "junit-jupiter", version.ref = "junitVersion" } | ||
junit-api = { group = "org.junit.jupiter", name = "junit-jupiter-api", version.ref = "junitVersion" } | ||
junit-params = { group = "org.junit.jupiter", name = "junit-jupiter-params", version.ref = "junitVersion" } | ||
junit-engine = { group = "org.junit.jupiter", name = "junit-jupiter-engine", version.ref = "junitVersion" } | ||
mockito-core = { group = "org.mockito", name = "mockito-core", version.ref = "mockitoVersion" } | ||
mockito-kotlin = { group = "org.mockito.kotlin", name = "mockito-kotlin", version.ref = "mockitoKotlinVersion" } | ||
kotlin-test = { group = "org.jetbrains.kotlin", name = "kotlin-test", version.ref = "kotlinVersion" } | ||
|
||
[bundles] | ||
test = ["junit", "junit-api", "junit-params", "junit-engine", "mockito-core", "mockito-kotlin", "assertj-core", "kotlin-test"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters