-
Notifications
You must be signed in to change notification settings - Fork 29
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
54a6841
commit 1ef9fea
Showing
7 changed files
with
445 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[submodule "toml/src/test/resources/toml-test"] | ||
path = test-multiple/src/test/resources/toml-test | ||
url = [email protected]:toml-lang/toml-test.git | ||
[submodule "test-multiple/src/test/resources/toml-test"] | ||
path = test-multiple/src/test/resources/toml-test | ||
url = [email protected]:toml-lang/toml-test.git |
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 |
---|---|---|
|
@@ -11,3 +11,4 @@ include("toml") | |
include("yaml") | ||
|
||
include("test-shared") | ||
include("test-multiple") |
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,36 @@ | ||
plugins { | ||
`java-library` | ||
} | ||
|
||
repositories { | ||
// Use Maven Central for resolving dependencies. | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
api(project(":toml")) | ||
api(project(":json")) | ||
testImplementation(project(":test-shared")) | ||
} | ||
|
||
// Use Java 11. | ||
java { | ||
toolchain { | ||
languageVersion = JavaLanguageVersion.of(11) | ||
} | ||
} | ||
|
||
// Get JUnit5 version from `libs.versions.toml`. | ||
val versionCatalog = extensions.getByType<VersionCatalogsExtension>().named("libs") | ||
val junitVersion = versionCatalog.findVersion("junit5") | ||
.orElseThrow{ RuntimeException("missing version in libs.versions.toml: junit5") } | ||
.getRequiredVersion() | ||
|
||
// Use JUnit5. | ||
testing { | ||
suites { | ||
val test by getting(JvmTestSuite::class) { | ||
useJUnitJupiter(junitVersion) | ||
} | ||
} | ||
} |
Oops, something went wrong.