Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download Maven dependencies on bootstrap #1135

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/backend-extended-services/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"@kie-tools-core/run-script-if": "0.0.0"
},
"scripts": {
"install": "mvn dependency:go-offline",
"powershell": "@powershell -NoProfile -ExecutionPolicy Unrestricted -Command",
"lint": "echo 'Linting'",
"install:mvnw": "mvn wrapper:wrapper -f kogito-extended-services-quarkus",
Expand Down
4 changes: 2 additions & 2 deletions packages/build-env/env/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* limitations under the License.
*/

const { varsWithName, getOrDefault, str2bool } = require("@kie-tools/build-env");
const packageJson = require("@kie-tools/build-env/package.json");
const { varsWithName, getOrDefault, str2bool } = require("../dist");
const packageJson = require("../package.json");

module.exports = {
vars: varsWithName({
Expand Down
2 changes: 2 additions & 0 deletions packages/build-env/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@
"url": "https://github.com/kiegroup/kie-tools.git"
},
"scripts": {
"install": "pnpm build:install",
"lint": "pnpm pnpm eslint ./src --ext .ts,.tsx",
"test": "pnpm jest --silent --verbose --passWithNoTests",
"print": "node dist/bin.js --print-vars && node dist/bin.js --print-env",
"build-env": "node dist/bin.js",
"build:install": "rimraf dist && tsc -p tsconfig.dev.json",
"build:dev": "rimraf dist && tsc -p tsconfig.dev.json && pnpm print",
"build:prod": "pnpm lint && rimraf dist && tsc -p tsconfig.prod.json && pnpm test && pnpm print"
},
Expand Down
26 changes: 0 additions & 26 deletions packages/dashbuilder/appformer/uberfire-commons/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -85,32 +85,6 @@
<groupId>jakarta.jms</groupId>
<artifactId>jakarta.jms-api</artifactId>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-buffer</artifactId>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-transport</artifactId>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-handler</artifactId>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-transport-native-epoll</artifactId>
<classifier>${netty-transport-native-epoll-classifier}</classifier>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-transport-native-kqueue</artifactId>
<classifier>${netty-transport-native-kqueue-classifier}</classifier>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-codec-http</artifactId>
</dependency>
<!-- /ActiveMQ (artemis) -->
</dependencies>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@
<artifactId>c3</artifactId>
<version>${version.org.webjars.bower.c3}</version>
</dependency>
<dependency>
<groupId>org.webjars.npm</groupId>
<artifactId>d3-geo-projection</artifactId>
<version>${version.org.webjars.bower.d3geoprojection}</version>
</dependency>
</dependencies>
</dependencyManagement>

Expand All @@ -35,20 +30,6 @@
<groupId>org.webjars.bowergithub.c3js</groupId>
<artifactId>c3</artifactId>
</dependency>
<dependency>
<groupId>org.webjars.npm</groupId>
<artifactId>d3-geo-projection</artifactId>
<exclusions>
<exclusion>
<groupId>org.webjars.npm</groupId>
<artifactId>d3-geo</artifactId>
</exclusion>
<exclusion>
<groupId>org.webjars.npm</groupId>
<artifactId>d3-array</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-user</artifactId>
Expand Down
1 change: 1 addition & 0 deletions packages/dashbuilder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"@kie-tools-core/run-script-if": "0.0.0"
},
"scripts": {
"install": "mvn dependency:go-offline",
"powershell": "@powershell -NoProfile -ExecutionPolicy Unrestricted -Command",
"lint": "echo 'Linting'",
"build:prod:authoring:linux": "cd ./dashbuilder-authoring/ && mvn clean install -Dfull -DskipTests=$(build-env global.build.test --not)",
Expand Down
2 changes: 1 addition & 1 deletion packages/dashbuilder/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
<!-- Plugins -->
<version.source.plugin>3.1.0</version.source.plugin>
<version.jar.plugin>3.1.2</version.jar.plugin>
<version.org.apache.maven.plugins.dependency>3.0.2</version.org.apache.maven.plugins.dependency>
<version.org.apache.maven.plugins.dependency>3.3.0</version.org.apache.maven.plugins.dependency>
<version.surefire.plugin>2.22.2</version.surefire.plugin>
<version.failsafe.plugin>${version.surefire.plugin}</version.failsafe.plugin>
<version.buildhelper.plugin>3.0.0</version.buildhelper.plugin>
Expand Down
3 changes: 3 additions & 0 deletions packages/dmn-dev-sandbox-quarkus/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
"@kie-tools-core/run-script-if": "0.0.0"
},
"scripts": {
"install": "run-script-os",
"install:darwin:linux": "mvn dependency:go-offline -DQUARKUS_PLATFORM_VERSION=$(build-env quarkusPlatform.version) -DKOGITO_RUNTIME_VERSION=$(build-env kogitoRuntime.version)",
"install:win32": "yarn powershell mvn dependency:go-offline `-DQUARKUS_PLATFORM_VERSION=$(build-env quarkusPlatform.version) `-DKOGITO_RUNTIME_VERSION=$(build-env kogitoRuntime.version)",
"powershell": "@powershell -NoProfile -ExecutionPolicy Unrestricted -Command",
"lint": "echo 'Linting'",
"quarkus:dev": "run-script-os",
Expand Down
6 changes: 6 additions & 0 deletions packages/dmn-dev-sandbox-quarkus/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
<quarkus.platform.version>${QUARKUS_PLATFORM_VERSION}</quarkus.platform.version>
<version.org.kie.kogito>${KOGITO_RUNTIME_VERSION}</version.org.kie.kogito>
<surefire-plugin.version>3.0.0-M5</surefire-plugin.version>
<dependency-plugin.version>3.3.0</dependency-plugin.version>
<version.junit>4.13.1</version.junit>
</properties>

Expand Down Expand Up @@ -138,6 +139,11 @@
<parameters>${maven.compiler.parameters}</parameters>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>${dependency-plugin.version}</version>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>${surefire-plugin.version}</version>
Expand Down
1 change: 1 addition & 0 deletions packages/openjdk11-mvn-image/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"url": "https://github.com/kiegroup/kie-tools.git"
},
"scripts": {
"install": "mvn dependency:go-offline",
"cleanup": "rimraf dist-dev && mkdir dist-dev",
"install:mvnw": "cd dist-dev/ && mvn wrapper:wrapper",
"copy:pom": "cp pom.xml dist-dev/",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"url": "https://github.com/kiegroup/kie-tools.git"
},
"scripts": {
"install": "mvn dependency:go-offline",
"cleanup": "rimraf dist-dev && mkdir dist-dev",
"install:mvnw": "cd dist-dev/ && mvn wrapper:wrapper",
"copy:pom": "cp pom.xml dist-dev/",
Expand Down
1 change: 1 addition & 0 deletions packages/serverless-workflow-diagram-editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"@kie-tools-core/run-script-if": "0.0.0"
},
"scripts": {
"install": "mvn dependency:go-offline",
"powershell": "@powershell -NoProfile -ExecutionPolicy Unrestricted -Command",
"lint": "echo 'Linting'",
"build:dev:linux:darwin": "mvn clean install -DskipTests -DskipITs -Pno-showcase && pnpm dist",
Expand Down
2 changes: 1 addition & 1 deletion packages/serverless-workflow-diagram-editor/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@
<version.checkstyle.plugin>3.0.0</version.checkstyle.plugin>
<version.clean.plugin>3.1.0</version.clean.plugin>
<version.compiler.plugin>3.8.0-jboss-2</version.compiler.plugin>
<version.dependency.plugin>3.1.1</version.dependency.plugin>
<version.dependency.plugin>3.3.0</version.dependency.plugin>
<version.deploy.plugin>2.8.2</version.deploy.plugin>
<version.enforcer.plugin>3.0.0-M1</version.enforcer.plugin>
<version.failsafe.plugin>${version.surefire.plugin}</version.failsafe.plugin>
Expand Down
1 change: 1 addition & 0 deletions packages/stunner-editors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"@kie-tools-core/run-script-if": "0.0.0"
},
"scripts": {
"install": "mvn dependency:go-offline",
"powershell": "@powershell -NoProfile -ExecutionPolicy Unrestricted -Command",
"lint": "echo 'Linting'",
"build:dev:linux:darwin": "mvn clean install -DskipTests -DskipITs -Pno-showcase && pnpm dist",
Expand Down
2 changes: 1 addition & 1 deletion packages/stunner-editors/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@
<version.checkstyle.plugin>3.0.0</version.checkstyle.plugin>
<version.clean.plugin>3.1.0</version.clean.plugin>
<version.compiler.plugin>3.8.0-jboss-2</version.compiler.plugin>
<version.dependency.plugin>3.1.1</version.dependency.plugin>
<version.dependency.plugin>3.3.0</version.dependency.plugin>
<version.deploy.plugin>2.8.2</version.deploy.plugin>
<version.enforcer.plugin>3.0.0-M1</version.enforcer.plugin>
<version.failsafe.plugin>${version.surefire.plugin}</version.failsafe.plugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"@kie-tools-core/run-script-if": "0.0.0"
},
"scripts": {
"install": "mvn -X dependency:go-offline",
"powershell": "@powershell -NoProfile -ExecutionPolicy Unrestricted -Command",
"lint": "echo 'Linting'",
"install:mvnw": "mvn wrapper:wrapper -f ./",
Expand Down