Flatten packages

Remove modules prefix
This commit is contained in:
Hubert Van De Walle 2020-11-11 22:32:23 +01:00
parent e6a7af840a
commit 8439782430
155 changed files with 51 additions and 33 deletions

View File

@ -21,7 +21,7 @@ RUN chown -R $APPLICATION_USER /app
USER $APPLICATION_USER
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
CMD [ \

View File

@ -10,10 +10,10 @@ plugins {
}
dependencies {
implementation(project(":simplenotes-domain"))
implementation(project(":simplenotes-types"))
implementation(project(":simplenotes-config"))
implementation(project(":simplenotes-views"))
implementation(project(":domain"))
implementation(project(":types"))
implementation(project(":config"))
implementation(project(":views"))
implementation(Libs.arrowCoreData)
implementation(Libs.konform)

View File

@ -14,5 +14,5 @@
<logger name="com.zaxxer.hikari" level="INFO"/>
<logger name="org.flywaydb.core" 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>

View File

Before

Width:  |  Height:  |  Size: 7.8 KiB

After

Width:  |  Height:  |  Size: 7.8 KiB

View File

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

View File

Before

Width:  |  Height:  |  Size: 6.2 KiB

After

Width:  |  Height:  |  Size: 6.2 KiB

View File

Before

Width:  |  Height:  |  Size: 814 B

After

Width:  |  Height:  |  Size: 814 B

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

1
app/test/Index.kt Normal file
View File

@ -0,0 +1 @@
package be.simplenotes.app

View File

@ -15,15 +15,15 @@ open class CssTask : DefaultTask() {
private val viewsProject = project
.parent
?.project(":simplenotes-views")
?: error("Missing :simplenotes-views")
?.project(":views")
?: error("Missing :views")
@get:InputDirectory
val templatesDir = viewsProject.extensions
.getByType<SourceSetContainer>()
.asMap.getOrElse("main") { error("main sources not found") }
.allSource.srcDirs
.find { it.endsWith("kotlin") }
.find { it.endsWith("src") }
?: error("kotlin sources not found")
private val yarnRoot = File(project.rootDir, "css")

View File

@ -24,3 +24,6 @@ java {
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}
sourceSets["main"].resources.srcDirs("resources")
sourceSets["test"].resources.srcDirs("testresources")

View File

@ -10,5 +10,5 @@ tasks.withType<Test> {
sourceSets {
val test by getting
test.resources.srcDir("${rootProject.projectDir}/simplenotes-test-resources/src/test/resources")
test.resources.srcDir("${rootProject.projectDir}/testresources/src/test/resources")
}

View File

@ -23,3 +23,6 @@ tasks.withType<KotlinCompile> {
)
}
}
kotlin.sourceSets["main"].kotlin.srcDirs("src")
kotlin.sourceSets["test"].kotlin.srcDirs("test")

View File

@ -7,10 +7,10 @@ plugins {
}
dependencies {
implementation(project(":simplenotes-config"))
implementation(project(":simplenotes-types"))
implementation(project(":simplenotes-persistance"))
implementation(project(":simplenotes-search"))
implementation(project(":config"))
implementation(project(":types"))
implementation(project(":persistance"))
implementation(project(":search"))
implementation(Libs.micronaut)
kapt(Libs.micronautProcessor)

1
domain/src/Index.kt Normal file
View File

@ -0,0 +1 @@
package be.simplenotes.domain

1
domain/test/Index.kt Normal file
View File

@ -0,0 +1 @@
package be.simplenotes.domain

View File

@ -7,8 +7,8 @@ plugins {
}
dependencies {
implementation(project(":simplenotes-types"))
implementation(project(":simplenotes-config"))
implementation(project(":types"))
implementation(project(":config"))
implementation(Libs.mariadbClient)
implementation(Libs.h2)
@ -29,9 +29,9 @@ dependencies {
testImplementation(Libs.logbackClassic)
testImplementation(Libs.mariaTestContainer)
testFixturesImplementation(project(":simplenotes-types"))
testFixturesImplementation(project(":simplenotes-config"))
testFixturesImplementation(project(":simplenotes-persistance"))
testFixturesImplementation(project(":types"))
testFixturesImplementation(project(":config"))
testFixturesImplementation(project(":persistance"))
testFixturesImplementation(Libs.micronaut)
kaptTestFixtures(Libs.micronautProcessor)
@ -48,3 +48,5 @@ dependencies {
testFixturesImplementation(Libs.ktormCore)
testFixturesImplementation(Libs.hikariCP)
}
kotlin.sourceSets["testFixtures"].kotlin.srcDirs("testfixtures")

Some files were not shown because too many files have changed in this diff Show More