Commit 7691cd0a authored by benjaminParisel's avatar benjaminParisel Committed by GitHub

chore(dependencies): Create script to list dependencies (#2759)

* chore(dependencies): Create script to list dependencies

Covers [UID-106](https://bonitasoft.atlassian.net/browse/UID-106)
parent 3f937231
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
......@@ -16,6 +16,7 @@
<handlebar.version>4.0.6</handlebar.version>
<spring.version>5.1.4.RELEASE</spring.version>
<aspectj.version>1.8.5</aspectj.version>
<projectInfoReports.version>3.0.0</projectInfoReports.version>
</properties>
<modules>
......@@ -307,6 +308,26 @@
</plugins>
</build>
</profile>
<profile>
<id>dependencies</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>${projectInfoReports.version}</version>
<executions>
<execution>
<phase>initialize</phase>
<goals>
<goal>dependencies</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<pluginRepositories>
......
......@@ -18,7 +18,8 @@
"postinstall": "bower install",
"build": "gulp",
"pot": "gulp pot",
"start": "gulp serve"
"start": "gulp serve",
"listDependencies": "bower-license -e json > ./target/ui-designer-backend-webapp.json"
},
"engine": {
"npm": ">=2.0.0"
......@@ -40,6 +41,7 @@
"gulp-ng-annotate": "~1.0.0",
"gulp-order": "1.1.1",
"gulp-plumber": "1.0.1",
"gulp-replace": "0.5.4",
"gulp-shell": "~0.2.10",
"gulp-sourcemaps": "^1.5.1",
"gulp-uglify": "~1.0.1",
......@@ -55,6 +57,7 @@
"karma-jasmine": "~0.3.8",
"karma-junit-reporter": "1.2.0",
"karma-phantomjs-launcher": "1.0.4",
"license-checker": "^25.0.1",
"log4js": "0.6.27",
"optimist": "0.6.1",
"phantomjs-prebuilt": "2.1.16",
......@@ -63,10 +66,10 @@
"widget-builder": "bonitasoft/widget-builder#2.0.1"
},
"dependencies": {
"jquery": "^3.0.0",
"merge-stream": "^0.1.7",
"gulp-if": "^1.2.5",
"gulp-ng-html2js": "^0.2.0",
"gulp-if": "^1.2.5"
"jquery": "^3.0.0",
"merge-stream": "^0.1.7"
},
"jscsConfig": {
"preset": "bonita",
......
......@@ -188,13 +188,13 @@
<artifactId>jsonassert</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.awaitility</groupId>
<artifactId>awaitility</artifactId>
<version>3.1.6</version>
<scope>test</scope>
</dependency>
<dependency>
<dependency>
<groupId>org.awaitility</groupId>
<artifactId>awaitility</artifactId>
<version>3.1.6</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.10</version>
......@@ -446,4 +446,41 @@
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>dependencies</id>
<build>
<plugins>
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<executions>
<execution>
<id>bower-license license-checker</id>
<goals>
<goal>yarn</goal>
</goals>
<phase>initialize</phase>
<configuration>
<arguments>add --dev bower-license license-checker</arguments>
</configuration>
</execution>
<execution>
<id>list dependencies</id>
<goals>
<goal>yarn</goal>
</goals>
<phase>initialize</phase>
<configuration>
<arguments>
listDependencies
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
......@@ -7,17 +7,17 @@
"npm": ">=2.0.0"
},
"dependencies": {
"@webcomponents/webcomponentsjs": "^2.2.7",
"angular-animate": "1.4.7",
"angular-resizable": "1.2.0",
"angular-switcher": "0.2.7",
"babel-polyfill": "6.3.14",
"mousetrap": "1.5.3",
"ngstorage": "0.3.10"
},
"devDependencies": {
"@webcomponents/webcomponentsjs": "^2.2.7",
"angular-i18n": "1.4.8",
"babel-core": "6.3.17",
"babel-polyfill": "6.3.14",
"babel-preset-bonita": "1.0.2",
"bower": "^1.3.12",
"browser-sync": "~1.7.1",
......@@ -60,9 +60,9 @@
"karma-cli": "0.0.4",
"karma-commonjs": "0.0.13",
"karma-coverage": "~0.2.6",
"karma-chrome-launcher": "^2.2.0",
"karma-jasmine": "0.3.8",
"karma-junit-reporter": "~0.2.2",
"karma-chrome-launcher": "^2.2.0",
"karma-ng-html2js-preprocessor": "^0.1.0",
"karma-source-map-support": "1.1.0",
"lodash": "~2.4.1",
......@@ -87,7 +87,9 @@
"e2e": "gulp e2e",
"e2e:headless": "cross-env HEADLESS=true npm-run-all e2e",
"pot": "gulp pot",
"start": "gulp serve"
"start": "gulp serve",
"listDependencies": "bower-license -e json > ./ui-designer-frontend-dependencies.json",
"listDependenciesYarn": "license-checker --json --production > ./ui-designer-frontend-yarn-dependencies.json"
},
"repository": {
"type": "git",
......
......@@ -108,5 +108,52 @@
</plugins>
</build>
</profile>
<profile>
<id>dependencies</id>
<build>
<plugins>
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<executions>
<execution>
<id>bower-license license-checker</id>
<goals>
<goal>yarn</goal>
</goals>
<phase>initialize</phase>
<configuration>
<arguments>add --dev bower-license license-checker</arguments>
</configuration>
</execution>
<execution>
<id>list bower dependencies</id>
<goals>
<goal>yarn</goal>
</goals>
<phase>initialize</phase>
<configuration>
<arguments>
listDependencies
</arguments>
</configuration>
</execution>
<execution>
<id>list yarn dependencies</id>
<goals>
<goal>yarn</goal>
</goals>
<phase>initialize</phase>
<configuration>
<arguments>
listDependenciesYarn
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment