rename lib projects to follow gradle convention (#291)

This commit is contained in:
AwkwardPeak7 2024-01-16 14:45:09 +05:00 committed by GitHub
parent 42e1db7f31
commit ac10aa04a0
32 changed files with 36 additions and 40 deletions

View File

@ -35,7 +35,7 @@ dependencies {
// Note that this does not mean that generated sources are going to
// implement them too; this is just to be able to compile and generate sources.
rootProject.subprojects
.filter { it.path.startsWith(":lib") }
.filter { it.path.startsWith(":lib:") }
.forEach(::implementation)
}

View File

@ -1,4 +1,4 @@
dependencies {
implementation(project(":lib-cryptoaes"))
implementation(project(":lib-randomua"))
implementation(project(":lib:cryptoaes"))
implementation(project(":lib:randomua"))
}

View File

@ -1,3 +1,3 @@
dependencies {
implementation(project(":lib-synchrony"))
implementation(project(":lib:synchrony"))
}

View File

@ -1,3 +1,3 @@
dependencies {
implementation(project(":lib-randomua"))
implementation(project(":lib:randomua"))
}

View File

@ -1,3 +1,3 @@
dependencies {
implementation(project(":lib-randomua"))
implementation(project(":lib:randomua"))
}

View File

@ -1,4 +1,4 @@
dependencies {
implementation(project(":lib-synchrony"))
implementation(project(":lib-cryptoaes"))
}
implementation(project(":lib:synchrony"))
implementation(project(":lib:cryptoaes"))
}

View File

@ -1,3 +1,3 @@
dependencies {
implementation project(':lib-unpacker')
implementation project(':lib:unpacker')
}

View File

@ -1,3 +1,3 @@
dependencies {
implementation(project(':lib-textinterceptor'))
implementation(project(':lib:textinterceptor'))
}

View File

@ -1,11 +1,7 @@
include(":core")
// Load all modules under /lib
File(rootDir, "lib").eachDir {
val libName = it.name
include(":lib-$libName")
project(":lib-$libName").projectDir = File("lib/$libName")
}
File(rootDir, "lib").eachDir { include("lib:${it.name}") }
if (System.getenv("CI") == null || System.getenv("CI_MODULE_GEN") == "true") {
// Local development (full project build)

View File

@ -8,5 +8,5 @@ ext {
apply from: "$rootDir/common.gradle"
dependencies {
implementation(project(':lib-cryptoaes'))
implementation(project(':lib:cryptoaes'))
}

View File

@ -8,5 +8,5 @@ ext {
apply from: "$rootDir/common.gradle"
dependencies {
implementation(project(':lib-textinterceptor'))
implementation(project(':lib:textinterceptor'))
}

View File

@ -8,5 +8,5 @@ ext {
apply from: "$rootDir/common.gradle"
dependencies {
implementation(project(":lib-i18n"))
implementation(project(":lib:i18n"))
}

View File

@ -8,5 +8,5 @@ ext {
apply from: "$rootDir/common.gradle"
dependencies {
implementation(project(':lib-cryptoaes'))
implementation(project(':lib:cryptoaes'))
}

View File

@ -8,5 +8,5 @@ ext {
apply from: "$rootDir/common.gradle"
dependencies {
implementation(project(":lib-i18n"))
implementation(project(":lib:i18n"))
}

View File

@ -7,5 +7,5 @@ ext {
apply from: "$rootDir/common.gradle"
dependencies {
implementation(project(":lib-i18n"))
implementation(project(":lib:i18n"))
}

View File

@ -8,5 +8,5 @@ ext {
apply from: "$rootDir/common.gradle"
dependencies {
implementation(project(":lib-randomua"))
implementation(project(":lib:randomua"))
}

View File

@ -7,5 +7,5 @@ ext {
apply from: "$rootDir/common.gradle"
dependencies {
implementation project(":lib-randomua")
implementation project(":lib:randomua")
}

View File

@ -7,5 +7,5 @@ ext {
apply from: "$rootDir/common.gradle"
dependencies {
implementation project(':lib-dataimage')
implementation project(':lib:dataimage')
}

View File

@ -7,5 +7,5 @@ ext {
apply from: "$rootDir/common.gradle"
dependencies {
implementation(project(':lib-textinterceptor'))
implementation(project(':lib:textinterceptor'))
}

View File

@ -8,5 +8,5 @@ ext {
apply from: "$rootDir/common.gradle"
dependencies {
implementation(project(':lib-cryptoaes'))
implementation(project(':lib:cryptoaes'))
}

View File

@ -7,5 +7,5 @@ ext {
apply from: "$rootDir/common.gradle"
dependencies {
implementation(project(':lib-textinterceptor'))
implementation(project(':lib:textinterceptor'))
}

View File

@ -7,5 +7,5 @@ ext {
apply from: "$rootDir/common.gradle"
dependencies {
implementation(project(":lib-synchrony"))
implementation(project(":lib:synchrony"))
}

View File

@ -8,5 +8,5 @@ ext {
apply from: "$rootDir/common.gradle"
dependencies {
implementation(project(':lib-textinterceptor'))
implementation(project(':lib:textinterceptor'))
}

View File

@ -7,5 +7,5 @@ ext {
apply from: "$rootDir/common.gradle"
dependencies {
implementation(project(":lib-synchrony"))
implementation(project(":lib:synchrony"))
}

View File

@ -8,5 +8,5 @@ ext {
apply from: "$rootDir/common.gradle"
dependencies {
implementation(project(":lib-randomua"))
implementation(project(":lib:randomua"))
}

View File

@ -7,6 +7,6 @@ ext {
apply from: "$rootDir/common.gradle"
dependencies {
implementation(project(':lib-cryptoaes'))
implementation(project(':lib-unpacker'))
implementation(project(':lib:cryptoaes'))
implementation(project(':lib:unpacker'))
}

View File

@ -7,5 +7,5 @@ ext {
apply from: "$rootDir/common.gradle"
dependencies {
implementation project(':lib-dataimage')
implementation project(':lib:dataimage')
}

View File

@ -7,5 +7,5 @@ ext {
apply from: "$rootDir/common.gradle"
dependencies {
implementation project(':lib-dataimage')
implementation project(':lib:dataimage')
}

View File

@ -8,5 +8,5 @@ ext {
apply from: "$rootDir/common.gradle"
dependencies {
implementation(project(":lib-randomua"))
implementation(project(":lib:randomua"))
}

View File

@ -7,5 +7,5 @@ ext {
apply from: "$rootDir/common.gradle"
dependencies {
implementation project(':lib-unpacker')
implementation project(':lib:unpacker')
}

View File

@ -7,5 +7,5 @@ ext {
apply from: "$rootDir/common.gradle"
dependencies {
implementation(project(":lib-synchrony"))
implementation(project(":lib:synchrony"))
}

View File

@ -7,5 +7,5 @@ ext {
apply from: "$rootDir/common.gradle"
dependencies {
implementation project(':lib-unpacker')
implementation project(':lib:unpacker')
}