Flatten packages
Remove modules prefix
@ -21,7 +21,7 @@ RUN chown -R $APPLICATION_USER /app
|
|||||||
USER $APPLICATION_USER
|
USER $APPLICATION_USER
|
||||||
|
|
||||||
COPY --from=jdkbuilder /myjdk /myjdk
|
COPY --from=jdkbuilder /myjdk /myjdk
|
||||||
COPY simplenotes-app/build/libs/simplenotes-app-with-dependencies*.jar /app/simplenotes.jar
|
COPY app/build/libs/app-with-dependencies*.jar /app/simplenotes.jar
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
CMD [ \
|
CMD [ \
|
||||||
|
|||||||
@ -10,10 +10,10 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(project(":simplenotes-domain"))
|
implementation(project(":domain"))
|
||||||
implementation(project(":simplenotes-types"))
|
implementation(project(":types"))
|
||||||
implementation(project(":simplenotes-config"))
|
implementation(project(":config"))
|
||||||
implementation(project(":simplenotes-views"))
|
implementation(project(":views"))
|
||||||
|
|
||||||
implementation(Libs.arrowCoreData)
|
implementation(Libs.arrowCoreData)
|
||||||
implementation(Libs.konform)
|
implementation(Libs.konform)
|
||||||
@ -14,5 +14,5 @@
|
|||||||
<logger name="com.zaxxer.hikari" level="INFO"/>
|
<logger name="com.zaxxer.hikari" level="INFO"/>
|
||||||
<logger name="org.flywaydb.core" level="INFO"/>
|
<logger name="org.flywaydb.core" level="INFO"/>
|
||||||
<logger name="io.micronaut" level="INFO"/>
|
<logger name="io.micronaut" level="INFO"/>
|
||||||
<logger name="io.micronaut.context.lifecycle" level="DEBUG"/>
|
<logger name="io.micronaut.context.lifecycle" level="INFO"/>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
Before Width: | Height: | Size: 7.8 KiB After Width: | Height: | Size: 7.8 KiB |
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 6.2 KiB After Width: | Height: | Size: 6.2 KiB |
|
Before Width: | Height: | Size: 814 B After Width: | Height: | Size: 814 B |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
1
app/test/Index.kt
Normal file
@ -0,0 +1 @@
|
|||||||
|
package be.simplenotes.app
|
||||||
@ -15,15 +15,15 @@ open class CssTask : DefaultTask() {
|
|||||||
|
|
||||||
private val viewsProject = project
|
private val viewsProject = project
|
||||||
.parent
|
.parent
|
||||||
?.project(":simplenotes-views")
|
?.project(":views")
|
||||||
?: error("Missing :simplenotes-views")
|
?: error("Missing :views")
|
||||||
|
|
||||||
@get:InputDirectory
|
@get:InputDirectory
|
||||||
val templatesDir = viewsProject.extensions
|
val templatesDir = viewsProject.extensions
|
||||||
.getByType<SourceSetContainer>()
|
.getByType<SourceSetContainer>()
|
||||||
.asMap.getOrElse("main") { error("main sources not found") }
|
.asMap.getOrElse("main") { error("main sources not found") }
|
||||||
.allSource.srcDirs
|
.allSource.srcDirs
|
||||||
.find { it.endsWith("kotlin") }
|
.find { it.endsWith("src") }
|
||||||
?: error("kotlin sources not found")
|
?: error("kotlin sources not found")
|
||||||
|
|
||||||
private val yarnRoot = File(project.rootDir, "css")
|
private val yarnRoot = File(project.rootDir, "css")
|
||||||
|
|||||||
@ -24,3 +24,6 @@ java {
|
|||||||
tasks.withType<JavaCompile> {
|
tasks.withType<JavaCompile> {
|
||||||
options.encoding = "UTF-8"
|
options.encoding = "UTF-8"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sourceSets["main"].resources.srcDirs("resources")
|
||||||
|
sourceSets["test"].resources.srcDirs("testresources")
|
||||||
|
|||||||
@ -10,5 +10,5 @@ tasks.withType<Test> {
|
|||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
val test by getting
|
val test by getting
|
||||||
test.resources.srcDir("${rootProject.projectDir}/simplenotes-test-resources/src/test/resources")
|
test.resources.srcDir("${rootProject.projectDir}/testresources/src/test/resources")
|
||||||
}
|
}
|
||||||
|
|||||||
@ -23,3 +23,6 @@ tasks.withType<KotlinCompile> {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
kotlin.sourceSets["main"].kotlin.srcDirs("src")
|
||||||
|
kotlin.sourceSets["test"].kotlin.srcDirs("test")
|
||||||
|
|||||||
@ -7,10 +7,10 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(project(":simplenotes-config"))
|
implementation(project(":config"))
|
||||||
implementation(project(":simplenotes-types"))
|
implementation(project(":types"))
|
||||||
implementation(project(":simplenotes-persistance"))
|
implementation(project(":persistance"))
|
||||||
implementation(project(":simplenotes-search"))
|
implementation(project(":search"))
|
||||||
|
|
||||||
implementation(Libs.micronaut)
|
implementation(Libs.micronaut)
|
||||||
kapt(Libs.micronautProcessor)
|
kapt(Libs.micronautProcessor)
|
||||||
1
domain/src/Index.kt
Normal file
@ -0,0 +1 @@
|
|||||||
|
package be.simplenotes.domain
|
||||||
1
domain/test/Index.kt
Normal file
@ -0,0 +1 @@
|
|||||||
|
package be.simplenotes.domain
|
||||||
@ -7,8 +7,8 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(project(":simplenotes-types"))
|
implementation(project(":types"))
|
||||||
implementation(project(":simplenotes-config"))
|
implementation(project(":config"))
|
||||||
|
|
||||||
implementation(Libs.mariadbClient)
|
implementation(Libs.mariadbClient)
|
||||||
implementation(Libs.h2)
|
implementation(Libs.h2)
|
||||||
@ -29,9 +29,9 @@ dependencies {
|
|||||||
testImplementation(Libs.logbackClassic)
|
testImplementation(Libs.logbackClassic)
|
||||||
testImplementation(Libs.mariaTestContainer)
|
testImplementation(Libs.mariaTestContainer)
|
||||||
|
|
||||||
testFixturesImplementation(project(":simplenotes-types"))
|
testFixturesImplementation(project(":types"))
|
||||||
testFixturesImplementation(project(":simplenotes-config"))
|
testFixturesImplementation(project(":config"))
|
||||||
testFixturesImplementation(project(":simplenotes-persistance"))
|
testFixturesImplementation(project(":persistance"))
|
||||||
|
|
||||||
testFixturesImplementation(Libs.micronaut)
|
testFixturesImplementation(Libs.micronaut)
|
||||||
kaptTestFixtures(Libs.micronautProcessor)
|
kaptTestFixtures(Libs.micronautProcessor)
|
||||||
@ -48,3 +48,5 @@ dependencies {
|
|||||||
testFixturesImplementation(Libs.ktormCore)
|
testFixturesImplementation(Libs.ktormCore)
|
||||||
testFixturesImplementation(Libs.hikariCP)
|
testFixturesImplementation(Libs.hikariCP)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
kotlin.sourceSets["testFixtures"].kotlin.srcDirs("testfixtures")
|
||||||