-
Notifications
You must be signed in to change notification settings - Fork 14
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
Showing
24 changed files
with
157 additions
and
200 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.gradle | ||
.idea | ||
build | ||
local.properties |
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 |
---|---|---|
@@ -1,32 +1,21 @@ | ||
plugins { | ||
id("org.example.application") | ||
} | ||
|
||
application { | ||
mainClass.set("org.example.product.app.Application") | ||
id("org.example.android-application") | ||
} | ||
|
||
dependencies { | ||
providedCompile("jakarta.servlet:jakarta.servlet-api") | ||
|
||
implementation(project(":bespin")) | ||
implementation(project(":corellia")) | ||
implementation(project(":kamino")) | ||
implementation(project(":kashyyyk")) | ||
implementation(project(":naboo")) | ||
implementation(project(":tatooine")) | ||
implementation("androidx.appcompat:appcompat") | ||
implementation("com.google.android.material:material") | ||
implementation("com.google.inject.extensions:guice-servlet") | ||
implementation("com.google.inject:guice") | ||
implementation("org.slf4j:slf4j-api") | ||
|
||
mockApiImplementation(project(path)) | ||
mockApiImplementation("com.google.guava:guava") | ||
|
||
testImplementation("org.junit.jupiter:junit-jupiter-api") | ||
|
||
endToEndTestImplementation(project(path)) { capabilities { requireCapabilities("${project.group}:${project.name}-mock-api") } } | ||
endToEndTestImplementation("com.google.guava:guava") | ||
endToEndTestImplementation("org.junit.jupiter:junit-jupiter-api") | ||
|
||
runtimeOnly("org.slf4j:slf4j-simple") | ||
androidTestImplementation("androidx.test.ext:junit") | ||
} |
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
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
46 changes: 46 additions & 0 deletions
46
...ns/android-application-plugins/src/main/kotlin/org.example.android-application.gradle.kts
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,46 @@ | ||
plugins { | ||
id("org.example.base") | ||
id("com.android.application") | ||
id("org.example.consistent-resolution-android-application") | ||
id("org.owasp.dependencycheck") | ||
} | ||
|
||
val versionString = version as String | ||
val versionInt = versionString.split(".")[0].toInt() * 1000 + versionString.split(".")[1].toInt() | ||
|
||
android { | ||
compileSdk = 31 | ||
namespace = "org.example.product.${project.name}" | ||
defaultConfig { | ||
applicationId = "org.example.product.app" | ||
minSdk = 26 | ||
targetSdk = 31 | ||
versionCode = versionInt | ||
versionName = versionString | ||
|
||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" | ||
} | ||
|
||
buildTypes.getByName("release") { | ||
minifyEnabled(false) | ||
} | ||
|
||
compileOptions { | ||
sourceCompatibility = JavaVersion.VERSION_11 | ||
targetCompatibility = JavaVersion.VERSION_11 | ||
} | ||
|
||
packaging { | ||
resources.excludes.add("META-INF/**") | ||
} | ||
} | ||
|
||
// Configure common test runtime dependencies for android application projects | ||
dependencies { | ||
androidTestRuntimeOnly("androidx.test.espresso:espresso-core") | ||
} | ||
|
||
dependencyCheck { | ||
scanConfigurations = listOf("releaseRuntimeClasspath") | ||
autoUpdate = false | ||
} |
23 changes: 23 additions & 0 deletions
23
...-plugins/src/main/kotlin/org.example.consistent-resolution-android-application.gradle.kts
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,23 @@ | ||
plugins { | ||
id("com.android.application") | ||
id("org.example.consistent-resolution") | ||
} | ||
|
||
android { | ||
applicationVariants.all { | ||
dependencies.add(runtimeConfiguration.name, dependencies.platform("org.example.product:platform")) | ||
compileConfiguration.shouldResolveConsistentlyWith(runtimeConfiguration) | ||
|
||
unitTestVariant.compileConfiguration.shouldResolveConsistentlyWith(runtimeConfiguration) | ||
unitTestVariant.runtimeConfiguration.shouldResolveConsistentlyWith(runtimeConfiguration) | ||
dependencies.add(unitTestVariant.compileConfiguration.name, dependencies.platform("org.example.product:platform")) | ||
dependencies.add(unitTestVariant.runtimeConfiguration.name, dependencies.platform("org.example.product:platform")) | ||
|
||
if (testVariant != null) { | ||
testVariant.compileConfiguration.shouldResolveConsistentlyWith(runtimeConfiguration) | ||
testVariant.runtimeConfiguration.shouldResolveConsistentlyWith(runtimeConfiguration) | ||
dependencies.add(testVariant.compileConfiguration.name, dependencies.platform("org.example.product:platform")) | ||
dependencies.add(testVariant.runtimeConfiguration.name, dependencies.platform("org.example.product:platform")) | ||
} | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...g/example/application/tasks/VersionXml.kt → ...n/org/example/android/tasks/VersionXml.kt
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,10 @@ | ||
plugins { | ||
`kotlin-dsl` | ||
} | ||
|
||
dependencies { | ||
implementation(platform(project(":plugins-platform"))) | ||
|
||
implementation(project(":java-base-plugins")) | ||
implementation("com.android.tools.build:gradle") | ||
} |
14 changes: 14 additions & 0 deletions
14
...le/plugins/android-library-plugins/src/main/kotlin/org.example.android-library.gradle.kts
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,14 @@ | ||
plugins { | ||
id("org.example.base") | ||
id("com.android.library") | ||
id("org.example.consistent-resolution-android-library") | ||
} | ||
|
||
android { | ||
compileSdk = 30 | ||
namespace = "org.example.product.${project.name}" | ||
|
||
defaultConfig { | ||
minSdk = 26 | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
...rary-plugins/src/main/kotlin/org.example.consistent-resolution-android-library.gradle.kts
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,24 @@ | ||
plugins { | ||
id("com.android.library") | ||
id("org.example.consistent-resolution") | ||
} | ||
|
||
android { | ||
val appRuntimeClasspath = configurations["appRuntimeClasspath"] | ||
libraryVariants.all { | ||
compileConfiguration.shouldResolveConsistentlyWith(appRuntimeClasspath) | ||
runtimeConfiguration.shouldResolveConsistentlyWith(appRuntimeClasspath) | ||
|
||
unitTestVariant.compileConfiguration.shouldResolveConsistentlyWith(appRuntimeClasspath) | ||
unitTestVariant.runtimeConfiguration.shouldResolveConsistentlyWith(appRuntimeClasspath) | ||
dependencies.add(unitTestVariant.compileConfiguration.name, dependencies.platform("org.example.product:platform")) | ||
dependencies.add(unitTestVariant.runtimeConfiguration.name, dependencies.platform("org.example.product:platform")) | ||
|
||
if (testVariant != null) { | ||
testVariant.compileConfiguration.shouldResolveConsistentlyWith(appRuntimeClasspath) | ||
testVariant.runtimeConfiguration.shouldResolveConsistentlyWith(appRuntimeClasspath) | ||
dependencies.add(testVariant.compileConfiguration.name, dependencies.platform("org.example.product:platform")) | ||
dependencies.add(testVariant.runtimeConfiguration.name, dependencies.platform("org.example.product:platform")) | ||
} | ||
} | ||
} |
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
47 changes: 0 additions & 47 deletions
47
gradle/plugins/java-application-plugins/src/main/kotlin/org.example.application.gradle.kts
This file was deleted.
Oops, something went wrong.
33 changes: 0 additions & 33 deletions
33
...e/plugins/java-application-plugins/src/main/kotlin/org.example.end2end-testing.gradle.kts
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
gradle/plugins/java-application-plugins/src/main/kotlin/org.example.war.gradle.kts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.