|
1 | 1 | plugins { |
2 | | - alias(idofrontLibs.plugins.kotlin.multiplatform) |
3 | | - alias(idofrontLibs.plugins.mia.autoversion) |
4 | | - alias(idofrontLibs.plugins.dependencyversions) |
5 | | - alias(idofrontLibs.plugins.version.catalog.update) |
| 2 | + alias(idofrontLibs.plugins.kotlin.multiplatform) apply false |
| 3 | + alias(idofrontLibs.plugins.mia.docs) |
| 4 | + alias(idofrontLibs.plugins.mia.publication) apply false |
6 | 5 | alias(idofrontLibs.plugins.kotlinx.serialization) apply false |
7 | 6 | } |
8 | | - |
9 | | -allprojects { |
10 | | - repositories { |
11 | | - mavenCentral() |
12 | | - google() |
13 | | - maven("https://repo.mineinabyss.com/releases") |
14 | | - maven("https://repo.mineinabyss.com/snapshots") |
15 | | - mavenLocal() |
16 | | - } |
17 | | -} |
18 | | - |
19 | | -allprojects { |
20 | | - pluginManager.withPlugin("org.jetbrains.kotlin.multiplatform") { |
21 | | - kotlin { |
22 | | - jvm { |
23 | | - testRuns["test"].executionTask.configure { |
24 | | - useJUnitPlatform() |
25 | | - } |
26 | | - } |
27 | | - // TODO Other targets are missing some implementations like Roaring Bitmaps, but we hope someone |
28 | | - // interested can add support in the future. Thus, we force a target that doesn't actually compile |
29 | | - // so we can't accidentally use jvm-only code in the common target. |
30 | | - linuxX64() |
31 | | - |
32 | | - sourceSets { |
33 | | - all { |
34 | | - languageSettings { |
35 | | - optIn("kotlinx.coroutines.ExperimentalCoroutinesApi") |
36 | | - optIn("kotlin.time.ExperimentalTime") |
37 | | - optIn("kotlin.ExperimentalUnsignedTypes") |
38 | | - optIn("kotlin.uuid.ExperimentalUuidApi") |
39 | | - optIn("kotlinx.serialization.ExperimentalSerializationApi") |
40 | | - optIn("kotlin.RequiresOptIn") |
41 | | - } |
42 | | - } |
43 | | - } |
44 | | - |
45 | | - compilerOptions { |
46 | | - freeCompilerArgs.addAll( |
47 | | - listOf( |
48 | | - "-opt-in=kotlinx.serialization.ExperimentalSerializationApi", |
49 | | - "-Xexpect-actual-classes" |
50 | | - ) |
51 | | - ) |
52 | | - } |
53 | | - } |
54 | | - } |
55 | | -} |
56 | | - |
57 | | -configurations { |
58 | | - create("docs") |
59 | | -} |
60 | | - |
61 | | -afterEvaluate { |
62 | | - val version = file("docs/version").readText() |
63 | | - dependencies { |
64 | | - "docs"("me.dvyy:shocky-docs:$version") |
65 | | - } |
66 | | -} |
67 | | - |
68 | | -tasks { |
69 | | - register<JavaExec>("docsGenerate") { |
70 | | - classpath = configurations.getByName("docs") |
71 | | - mainClass.set("me.dvyy.shocky.docs.MainKt") |
72 | | - args("generate") |
73 | | - } |
74 | | - register<JavaExec>("docsServe") { |
75 | | - classpath = configurations.getByName("docs") |
76 | | - mainClass.set("me.dvyy.shocky.docs.MainKt") |
77 | | - args("serve") |
78 | | - } |
79 | | -} |
0 commit comments