Skip to content

Commit 47a7a06

Browse files
committed
Create tests folder, invert Gradle dependency
1 parent 885cdc1 commit 47a7a06

File tree

22 files changed

+37
-6
lines changed

22 files changed

+37
-6
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,6 @@ jobs:
1717
cache: gradle
1818
- uses: gradle/actions/wrapper-validation@v4
1919
- name: Check local deployment
20-
run: ./gradlew build deployLocal
20+
run: ./gradlew build deployLocal
21+
- name: Check sample app
22+
run: cd tests && ../gradlew sample:assembleDebug

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
*.iml
22
.gradle
3-
/local.properties
3+
**/local.properties
44
/.idea/
55
.DS_Store
66
/build

grease/build.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,8 @@ deployer {
3535
scm.fromGithub("deepmedia", "Grease")
3636
developer("natario1", "mattia@deepmedia.io", "DeepMedia", "https://deepmedia.io")
3737
}
38+
39+
localSpec {
40+
directory = layout.buildDirectory.dir("inspect")
41+
}
3842
}

grease/src/main/kotlin/io/deepmedia/tools/grease/task.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ internal fun <T : Task> TaskContainer.locateOrRegisterTask(
4242
return locateTask(name, type) ?: registerTask(name, type, body = body)
4343
}
4444

45+
@Suppress("UNCHECKED_CAST")
4546
internal fun TaskContainer.locateOrRegisterTask(name: String, body: Task.() -> (Unit)): TaskProvider<Task> {
4647
return (locateTask(name, DefaultTask::class.java) ?: registerTask(name, DefaultTask::class.java, body = body)) as TaskProvider<Task>
4748
}

settings.gradle.kts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
pluginManagement {
2-
includeBuild("./grease")
32
repositories {
43
google()
54
gradlePluginPortal()
@@ -14,8 +13,11 @@ dependencyResolutionManagement {
1413
gradlePluginPortal()
1514
mavenCentral()
1615
}
16+
versionCatalogs {
17+
create("libs")
18+
}
1719
}
1820

19-
rootProject.name = "grease"
21+
rootProject.name = "Grease"
2022

21-
include(":sample")
23+
include(":grease")

tests/gradle.properties

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Project-wide Gradle settings.
2+
# IDE (e.g. Android Studio) users:
3+
# Gradle settings configured through the IDE *will override*
4+
# any settings specified in this file.
5+
# For more details on how to configure your build environment visit
6+
# http://www.gradle.org/docs/current/userguide/build_environment.html
7+
# Specifies the JVM arguments used for the daemon process.
8+
# The setting is particularly useful for tweaking memory settings.
9+
org.gradle.jvmargs=-Xmx1536m
10+
# When configured, Gradle will run in incubating parallel mode.
11+
# This option should only be used with decoupled projects. More details, visit
12+
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
13+
# org.gradle.parallel=true
14+
# AndroidX package structure to make it clearer which packages are bundled with the
15+
# Android operating system, and which are packaged with your app's APK
16+
# https://developer.android.com/topic/libraries/support-library/androidx-rn
17+
android.useAndroidX=true
18+
# Kotlin code style for this project: "official" or "obsolete":
19+
kotlin.code.style=official

0 commit comments

Comments
 (0)