Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Create tests folder, invert Gradle dependency
  • Loading branch information
natario1 committed Aug 25, 2024
commit ed08094e46acabd97598e82aff49ba6efb17f312
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@ jobs:
cache: gradle
- uses: gradle/actions/wrapper-validation@v4
- name: Check local deployment
run: ./gradlew build deployLocal
run: ./gradlew build deployLocal
- name: Check sample app
run: cd tests && ../gradlew sample:assembleDebug
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
*.iml
.gradle
/local.properties
**/local.properties
/.idea/
.DS_Store
/build
Expand Down
4 changes: 4 additions & 0 deletions grease/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,8 @@ deployer {
scm.fromGithub("deepmedia", "Grease")
developer("natario1", "[email protected]", "DeepMedia", "https://deepmedia.io")
}

localSpec {
directory = layout.buildDirectory.dir("inspect")
}
}
1 change: 1 addition & 0 deletions grease/src/main/kotlin/io/deepmedia/tools/grease/task.kt
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ internal fun <T : Task> TaskContainer.locateOrRegisterTask(
return locateTask(name, type) ?: registerTask(name, type, body = body)
}

@Suppress("UNCHECKED_CAST")
internal fun TaskContainer.locateOrRegisterTask(name: String, body: Task.() -> (Unit)): TaskProvider<Task> {
return (locateTask(name, DefaultTask::class.java) ?: registerTask(name, DefaultTask::class.java, body = body)) as TaskProvider<Task>
}
Expand Down
8 changes: 5 additions & 3 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
pluginManagement {
includeBuild("./grease")
repositories {
google()
gradlePluginPortal()
Expand All @@ -14,8 +13,11 @@ dependencyResolutionManagement {
gradlePluginPortal()
mavenCentral()
}
versionCatalogs {
create("libs")
}
}

rootProject.name = "grease"
rootProject.name = "Grease"

include(":sample")
include(":grease")
19 changes: 19 additions & 0 deletions tests/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Project-wide Gradle settings.
# IDE (e.g. Android Studio) users:
# Gradle settings configured through the IDE *will override*
# any settings specified in this file.
# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
org.gradle.jvmargs=-Xmx1536m
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
# AndroidX package structure to make it clearer which packages are bundled with the
# Android operating system, and which are packaged with your app's APK
# https://developer.android.com/topic/libraries/support-library/androidx-rn
android.useAndroidX=true
# Kotlin code style for this project: "official" or "obsolete":
kotlin.code.style=official
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 4 additions & 1 deletion grease/settings.gradle.kts → tests/settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
pluginManagement {
includeBuild("..")
repositories {
google()
gradlePluginPortal()
Expand All @@ -20,4 +21,6 @@ dependencyResolutionManagement {
}
}

rootProject.name = "grease"
rootProject.name = "Grease"

include(":sample")