diff --git a/android/project.json b/android/project.json index dd7ddd372..6dd90a1c0 100644 --- a/android/project.json +++ b/android/project.json @@ -6,17 +6,23 @@ "targets": { "build": { "executor": "@jnxplus/nx-gradle:build", - "outputs": ["./android/build"] + "outputs": [ + "{projectRoot}/android/build" + ] }, "lint": { - "dependsOn": ["build"], + "dependsOn": [ + "build" + ], "executor": "@jnxplus/nx-gradle:lint", "options": { "linter": "ktlint" } }, "test": { - "dependsOn": ["build"], + "dependsOn": [ + "build" + ], "executor": "@jnxplus/nx-gradle:test" }, "ktformat": { @@ -44,14 +50,18 @@ } }, "release-sonatype": { - "dependsOn": ["build"], + "dependsOn": [ + "build" + ], "executor": "nx:run-commands", "options": { "command": "echo 'android-release' && ./gradlew :android:publishToSonatype -Prelease closeAndReleaseSonatypeStagingRepository" } }, "snapshot-release": { - "dependsOn": ["build"], + "dependsOn": [ + "build" + ], "executor": "nx:run-commands", "options": { "command": "echo 'android-snapshot' && ./gradlew :android:publishToSonatype" diff --git a/core/project.json b/core/project.json index 053dce03d..f92f6f816 100644 --- a/core/project.json +++ b/core/project.json @@ -6,17 +6,23 @@ "targets": { "build": { "executor": "@jnxplus/nx-gradle:build", - "outputs": ["./core/build"] + "outputs": [ + "{projectRoot}/core/build" + ] }, "lint": { - "dependsOn": ["build"], + "dependsOn": [ + "build" + ], "executor": "@jnxplus/nx-gradle:lint", "options": { "linter": "ktlint" } }, "test": { - "dependsOn": ["build"], + "dependsOn": [ + "build" + ], "executor": "@jnxplus/nx-gradle:test" }, "ktformat": { @@ -44,14 +50,18 @@ } }, "release-sonatype": { - "dependsOn": ["build"], + "dependsOn": [ + "build" + ], "executor": "nx:run-commands", "options": { "command": "echo 'core-release' && ./gradlew :core:publishToSonatype -Prelease closeAndReleaseSonatypeStagingRepository" } }, "snapshot-release": { - "dependsOn": ["build"], + "dependsOn": [ + "build" + ], "executor": "nx:run-commands", "options": { "command": "echo 'core-snapshot' && ./gradlew :core:publishToSonatype" diff --git a/gsonrudderadapter/project.json b/gsonrudderadapter/project.json index d7c61c7c3..57febbe01 100644 --- a/gsonrudderadapter/project.json +++ b/gsonrudderadapter/project.json @@ -7,23 +7,30 @@ "build": { "dependsOn": [ { - "projects":[ - "rudderjsonadapter"], - "target":"build" + "projects": [ + "rudderjsonadapter" + ], + "target": "build" } ], "executor": "@jnxplus/nx-gradle:build", - "outputs": ["./gsonrudderadapter/build"] + "outputs": [ + "{projectRoot}/gsonrudderadapter/build" + ] }, "lint": { - "dependsOn": ["build"], + "dependsOn": [ + "build" + ], "executor": "@jnxplus/nx-gradle:lint", "options": { "linter": "ktlint" } }, "test": { - "dependsOn": ["build"], + "dependsOn": [ + "build" + ], "executor": "@jnxplus/nx-gradle:test" }, "ktformat": { @@ -52,14 +59,18 @@ } }, "release-sonatype": { - "dependsOn": ["build"], + "dependsOn": [ + "build" + ], "executor": "nx:run-commands", "options": { "command": "echo 'gsonrudderadapter-release' && ./gradlew publishToSonatype -p gsonrudderadapter -Prelease && ./gradlew findSonatypeStagingRepository closeSonatypeStagingRepository && ./gradlew findSonatypeStagingRepository releaseSonatypeStagingRepository" } }, "snapshot-release": { - "dependsOn": ["build"], + "dependsOn": [ + "build" + ], "executor": "nx:run-commands", "options": { "command": "echo 'gsonrudderadapter-snapshot' && cd gsonrudderadapter && sh ../gradlew generatePomFileForReleasePublication && sh ../gradlew publishToSonatype && cd .." diff --git a/jacksonrudderadapter/project.json b/jacksonrudderadapter/project.json index e65ef42a9..197190894 100644 --- a/jacksonrudderadapter/project.json +++ b/jacksonrudderadapter/project.json @@ -7,24 +7,30 @@ "build": { "dependsOn": [ { - "projects":[ + "projects": [ "rudderjsonadapter" ], - "target":"build" + "target": "build" } ], "executor": "@jnxplus/nx-gradle:build", - "outputs": ["./jacksonrudderadapter/build"] + "outputs": [ + "{projectRoot}/jacksonrudderadapter/build" + ] }, "lint": { - "dependsOn": ["build"], + "dependsOn": [ + "build" + ], "executor": "@jnxplus/nx-gradle:lint", "options": { "linter": "ktlint" } }, "test": { - "dependsOn": ["build"], + "dependsOn": [ + "build" + ], "executor": "@jnxplus/nx-gradle:test" }, "ktformat": { @@ -53,14 +59,18 @@ } }, "release-sonatype": { - "dependsOn": ["build"], + "dependsOn": [ + "build" + ], "executor": "nx:run-commands", "options": { "command": "echo 'jacksonrudderadapter-release' && ./gradlew publishToSonatype -p jacksonrudderadapter -Prelease && ./gradlew findSonatypeStagingRepository closeSonatypeStagingRepository && ./gradlew findSonatypeStagingRepository releaseSonatypeStagingRepository" } }, "snapshot-release": { - "dependsOn": ["build"], + "dependsOn": [ + "build" + ], "executor": "nx:run-commands", "options": { "command": "echo 'jacksonrudderadapter-snapshot' && cd jacksonrudderadapter && sh ../gradlew generatePomFileForReleasePublication && ../gradlew publishToSonatype && cd .." diff --git a/models/project.json b/models/project.json index f8a39cf38..d95f29102 100644 --- a/models/project.json +++ b/models/project.json @@ -6,17 +6,23 @@ "targets": { "build": { "executor": "@jnxplus/nx-gradle:build", - "outputs": ["./models/build"] + "outputs": [ + "{projectRoot}/models/build" + ] }, "lint": { - "dependsOn": ["build"], + "dependsOn": [ + "build" + ], "executor": "@jnxplus/nx-gradle:lint", "options": { "linter": "ktlint" } }, "test": { - "dependsOn": ["build"], + "dependsOn": [ + "build" + ], "executor": "@jnxplus/nx-gradle:test" }, "ktformat": { @@ -45,14 +51,18 @@ } }, "release-sonatype": { - "dependsOn": ["build"], + "dependsOn": [ + "build" + ], "executor": "nx:run-commands", "options": { "command": "echo 'models-release' && cd models && sh ../gradlew generatePomFileForReleasePublication && ../gradlew publishToSonatype && cd .. && ./gradlew findSonatypeStagingRepository closeSonatypeStagingRepository && ./gradlew findSonatypeStagingRepository releaseSonatypeStagingRepository" } }, "snapshot-release": { - "dependsOn": ["build"], + "dependsOn": [ + "build" + ], "executor": "nx:run-commands", "options": { "command": "echo 'models-snapshot' && cd models && sh ../gradlew generatePomFileForReleasePublication && ../gradlew publishToSonatype && cd .." diff --git a/moshirudderadapter/project.json b/moshirudderadapter/project.json index b5bfd357d..8d2ba8622 100644 --- a/moshirudderadapter/project.json +++ b/moshirudderadapter/project.json @@ -7,14 +7,16 @@ "build": { "dependsOn": [ { - "projects":[ + "projects": [ "rudderjsonadapter" ], - "target":"build" + "target": "build" } ], "executor": "@jnxplus/nx-gradle:build", - "outputs": ["./moshirudderadapter/build"] + "outputs": [ + "{projectRoot}/moshirudderadapter/build" + ] }, "lint": { "executor": "@jnxplus/nx-gradle:lint", diff --git a/nx.json b/nx.json index 56ac898ff..224dce94b 100644 --- a/nx.json +++ b/nx.json @@ -9,5 +9,24 @@ }, "affected": { "defaultBase": "origin/master-v2" + }, + "$schema": "./node_modules/nx/schemas/nx-schema.json", + "namedInputs": { + "default": [ + "{projectRoot}/**/*", + "sharedGlobals" + ], + "sharedGlobals": [], + "production": [ + "default" + ] + }, + "targetDefaults": { + "build": { + "inputs": [ + "production", + "^production" + ] + } } } diff --git a/repository/project.json b/repository/project.json index b8ddbd84c..ef909ee4f 100644 --- a/repository/project.json +++ b/repository/project.json @@ -6,17 +6,23 @@ "targets": { "build": { "executor": "@jnxplus/nx-gradle:build", - "outputs": ["./repository/build"] + "outputs": [ + "{projectRoot}/repository/build" + ] }, "lint": { - "dependsOn": ["build"], + "dependsOn": [ + "build" + ], "executor": "@jnxplus/nx-gradle:lint", "options": { "linter": "ktlint" } }, "test": { - "dependsOn": ["build"], + "dependsOn": [ + "build" + ], "executor": "@jnxplus/nx-gradle:test" }, "ktformat": { @@ -45,14 +51,18 @@ } }, "release-sonatype": { - "dependsOn": ["build"], + "dependsOn": [ + "build" + ], "executor": "nx:run-commands", "options": { "command": "echo 'repository-release' && ./gradlew publishToSonatype -p repository -Prelease && ./gradlew findSonatypeStagingRepository closeSonatypeStagingRepository && ./gradlew findSonatypeStagingRepository releaseSonatypeStagingRepository" } }, "snapshot-release": { - "dependsOn": ["build"], + "dependsOn": [ + "build" + ], "executor": "nx:run-commands", "options": { "command": "echo 'repository-snapshot' && cd repository && sh ../gradlew generatePomFileForReleasePublication && ../gradlew publishToSonatype && cd .." diff --git a/rudderjsonadapter/project.json b/rudderjsonadapter/project.json index e554febdf..0062ba6ae 100644 --- a/rudderjsonadapter/project.json +++ b/rudderjsonadapter/project.json @@ -6,17 +6,23 @@ "targets": { "build": { "executor": "@jnxplus/nx-gradle:build", - "outputs": ["./rudderjsonadapter/build"] + "outputs": [ + "{projectRoot}/rudderjsonadapter/build" + ] }, "lint": { - "dependsOn": ["build"], + "dependsOn": [ + "build" + ], "executor": "@jnxplus/nx-gradle:lint", "options": { "linter": "ktlint" } }, "test": { - "dependsOn": ["build"], + "dependsOn": [ + "build" + ], "executor": "@jnxplus/nx-gradle:test" }, "ktformat": { @@ -45,14 +51,18 @@ } }, "release-sonatype": { - "dependsOn": ["build"], + "dependsOn": [ + "build" + ], "executor": "nx:run-commands", "options": { "command": "echo 'rudderjsonadapter-release' && cd rudderjsonadapter && sh ../gradlew generatePomFileForReleasePublication && ../gradlew publishToSonatype -Prelease && cd .. && ./gradlew findSonatypeStagingRepository closeSonatypeStagingRepository && ./gradlew findSonatypeStagingRepository releaseSonatypeStagingRepository" } }, "snapshot-release": { - "dependsOn": ["build"], + "dependsOn": [ + "build" + ], "executor": "nx:run-commands", "options": { "command": "echo 'rudderjsonadapter-snapshot' && cd rudderjsonadapter && sh ../gradlew generatePomFileForReleasePublication && ../gradlew publishToSonatype && cd .." diff --git a/rudderreporter/project.json b/rudderreporter/project.json index 9a32d6d8f..a2d12fe39 100644 --- a/rudderreporter/project.json +++ b/rudderreporter/project.json @@ -19,7 +19,7 @@ ], "executor": "@jnxplus/nx-gradle:build", "outputs": [ - "./rudderreporter/build" + "{projectRoot}/rudderreporter/build" ] }, "lint": { @@ -57,7 +57,7 @@ "github": { "executor": "@jscutlery/semver:github", "options": { - "title": "rudderreporter@0.2.0", + "title": "rudderreporter@0.3.0", "tag": "rudderreporter@0.2.0", "notesFile": "./rudderreporter/CHANGELOG_LATEST.md" } diff --git a/web/project.json b/web/project.json index 2b9543d30..85ff3e990 100644 --- a/web/project.json +++ b/web/project.json @@ -7,25 +7,32 @@ "build": { "dependsOn": [ { - "projects":[ + "projects": [ "moshirudderadapter", "gsonrudderadapter", - "jacksonrudderadapter"], - "target":"build" + "jacksonrudderadapter" + ], + "target": "build" } ], "executor": "@jnxplus/nx-gradle:build", - "outputs": ["./web/build"] + "outputs": [ + "{projectRoot}/web/build" + ] }, "lint": { - "dependsOn": ["build"], + "dependsOn": [ + "build" + ], "executor": "@jnxplus/nx-gradle:lint", "options": { "linter": "ktlint" } }, "test": { - "dependsOn": ["build"], + "dependsOn": [ + "build" + ], "executor": "@jnxplus/nx-gradle:test" }, "ktformat": { @@ -54,14 +61,18 @@ } }, "release-sonatype": { - "dependsOn": ["build"], + "dependsOn": [ + "build" + ], "executor": "nx:run-commands", "options": { "command": "echo 'web-release' && ./gradlew publishToSonatype -p web -Prelease && ./gradlew findSonatypeStagingRepository closeSonatypeStagingRepository && ./gradlew findSonatypeStagingRepository releaseSonatypeStagingRepository" } }, "snapshot-release": { - "dependsOn": ["build"], + "dependsOn": [ + "build" + ], "executor": "nx:run-commands", "options": { "command": "echo 'web-snapshot' && cd web && sh ../gradlew generatePomFileForReleasePublication && ../gradlew publishToSonatype && cd .."