removing JHipster
This commit is contained in:
		| @@ -1,35 +0,0 @@ | ||||
| buildscript { | ||||
|     repositories { | ||||
|         gradlePluginPortal() | ||||
|     } | ||||
|     dependencies { | ||||
|         classpath "gradle.plugin.com.google.cloud.tools:jib-gradle-plugin:0.9.11" | ||||
|     } | ||||
| } | ||||
|  | ||||
| apply plugin: com.google.cloud.tools.jib.gradle.JibPlugin | ||||
|  | ||||
| jib { | ||||
|     from { | ||||
|         image = 'openjdk:8-jre-alpine' | ||||
|     } | ||||
|     to { | ||||
|         image = 'hsadminng:latest' | ||||
|     } | ||||
|     container { | ||||
|         entrypoint = ['sh', '-c', 'chmod +x /entrypoint.sh && sync && /entrypoint.sh'] | ||||
|         ports = ['8080'] | ||||
|         environment = [ | ||||
|             SPRING_OUTPUT_ANSI_ENABLED: 'ALWAYS', | ||||
|             JHIPSTER_SLEEP: '0' | ||||
|         ] | ||||
|         useCurrentTimestamp = true | ||||
|     } | ||||
| } | ||||
|  | ||||
| task copyWwwIntoStatic (type: Copy) { | ||||
|     from 'build/www/' | ||||
|     into 'build/resources/main/static' | ||||
| } | ||||
|  | ||||
| jibDockerBuild.dependsOn copyWwwIntoStatic | ||||
| @@ -1,72 +0,0 @@ | ||||
| import org.gradle.internal.os.OperatingSystem | ||||
|  | ||||
| apply plugin: 'org.springframework.boot' | ||||
| apply plugin: 'com.moowork.node' | ||||
|  | ||||
| dependencies { | ||||
|     compile "org.springframework.boot:spring-boot-devtools" | ||||
|     compile "com.h2database:h2" | ||||
| } | ||||
|  | ||||
| def profiles = ""; | ||||
| if (project.hasProperty('pgsql')) { | ||||
|     profiles += 'pgsql' | ||||
| } else if (project.hasProperty('h2file')) { | ||||
|     profiles += 'h2file' | ||||
| } else { | ||||
|     profiles += 'h2mem' | ||||
| } | ||||
| if (project.hasProperty('no-liquibase')) { | ||||
|     profiles += ',no-liquibase' | ||||
| } | ||||
| if (project.hasProperty('tls')) { | ||||
|     profiles += ',tls' | ||||
| } | ||||
|  | ||||
| println 'activating profiles: ' + profiles | ||||
|  | ||||
| springBoot { | ||||
|     buildInfo { | ||||
| 		properties { | ||||
| 			time = null | ||||
| 		} | ||||
| 	} | ||||
| } | ||||
|  | ||||
| bootRun { | ||||
|     args = [] | ||||
| } | ||||
|  | ||||
| task webpackBuildDev(type: NpmTask) { | ||||
|     inputs.files(fileTree('src/main/webapp/')) | ||||
|  | ||||
|     def webpackDevFiles = fileTree('webpack//') | ||||
|     webpackDevFiles.exclude('webpack.prod.js') | ||||
|     inputs.files(webpackDevFiles) | ||||
|  | ||||
|     outputs.files(fileTree("build/www/")) | ||||
|  | ||||
|     dependsOn npmInstall | ||||
|  | ||||
|     args = ["run", "webpack:build"] | ||||
| } | ||||
|  | ||||
| task copyIntoStatic (type: Copy) { | ||||
|     from 'build/www/' | ||||
|     into 'build/resources/main/static' | ||||
| } | ||||
|  | ||||
| processResources { | ||||
|     filesMatching('**/application.yml') { | ||||
|         filter { | ||||
|             it.replace('#project.version#', version) | ||||
|         } | ||||
|         filter { | ||||
|             it.replace('#spring.profiles.active#', profiles) | ||||
|         } | ||||
|     } | ||||
| } | ||||
|  | ||||
| processResources.dependsOn webpackBuildDev | ||||
| copyIntoStatic.dependsOn processResources | ||||
| bootJar.dependsOn copyIntoStatic | ||||
| @@ -1,63 +0,0 @@ | ||||
| apply plugin: 'org.springframework.boot' | ||||
| apply plugin: 'com.gorylenko.gradle-git-properties' | ||||
| apply plugin: 'com.moowork.node' | ||||
|  | ||||
| dependencies { | ||||
|     testCompile "com.h2database:h2" | ||||
| } | ||||
|  | ||||
| def profiles = 'prod' | ||||
| if (project.hasProperty('no-liquibase')) { | ||||
|     profiles += ',no-liquibase' | ||||
| } | ||||
|  | ||||
| if (project.hasProperty('swagger')) { | ||||
|     profiles += ',swagger' | ||||
| } | ||||
|  | ||||
| springBoot { | ||||
|     buildInfo() | ||||
| } | ||||
|  | ||||
| bootRun { | ||||
|     args = [] | ||||
| } | ||||
|  | ||||
| task webpack_test(type: NpmTask, dependsOn: 'npm_install') { | ||||
|     args = ["run", "webpack:test"] | ||||
| } | ||||
|  | ||||
| task webpack(type: NpmTask, dependsOn: 'npm_install') { | ||||
|     args = ["run", "webpack:prod"] | ||||
| } | ||||
|  | ||||
| task copyIntoStatic (type: Copy) { | ||||
|     from 'build/www/' | ||||
|     into 'build/resources/main/static' | ||||
| } | ||||
|  | ||||
| processResources { | ||||
|     filesMatching('**/application.yml') { | ||||
|         filter { | ||||
|             it.replace('#project.version#', version) | ||||
|         } | ||||
|         filter { | ||||
|             it.replace('#spring.profiles.active#', profiles) | ||||
|         } | ||||
|     } | ||||
| } | ||||
|  | ||||
| generateGitProperties { | ||||
|     onlyIf { | ||||
|         !source.isEmpty() | ||||
|     } | ||||
| } | ||||
|  | ||||
| gitProperties { | ||||
|     keys = ['git.branch', 'git.commit.id.abbrev', 'git.commit.id.describe'] | ||||
| } | ||||
|  | ||||
| test.dependsOn webpack_test | ||||
| processResources.dependsOn webpack | ||||
| copyIntoStatic.dependsOn processResources | ||||
| bootJar.dependsOn copyIntoStatic | ||||
| @@ -1,47 +0,0 @@ | ||||
| apply plugin: "org.sonarqube" | ||||
| apply plugin: 'jacoco' | ||||
|  | ||||
| jacoco { | ||||
|     toolVersion = '0.8.2' | ||||
| } | ||||
|  | ||||
| jacocoTestReport { | ||||
|     reports { | ||||
|         xml.enabled true | ||||
|     } | ||||
| } | ||||
|  | ||||
| sonarqube { | ||||
|     properties { | ||||
|         property "sonar.host.url", "http://localhost:9001" | ||||
|         property "sonar.exclusions", "src/main/webapp/content/**/*.*,src/main/webapp/i18n/*.js, build/www/**/*.*" | ||||
|  | ||||
|         property "sonar.issue.ignore.multicriteria", "S3437,S4502,S4684,UndocumentedApi,BoldAndItalicTagsCheck" | ||||
|  | ||||
|         // Rule https://sonarcloud.io/coding_rules?open=Web%3ABoldAndItalicTagsCheck&rule_key=Web%3ABoldAndItalicTagsCheck is ignored. Even if we agree that using the "i" tag is an awful practice, this is what is recommended by http://fontawesome.io/examples/ | ||||
|         property "sonar.issue.ignore.multicriteria.BoldAndItalicTagsCheck.resourceKey", ">src/main/webapp/app/**/*.*" | ||||
|         property "sonar.issue.ignore.multicriteria.BoldAndItalicTagsCheck.ruleKey", "Web:BoldAndItalicTagsCheck" | ||||
|  | ||||
|         // Rule https://sonarcloud.io/coding_rules?open=squid%3AS3437&rule_key=squid%3AS3437 is ignored, as a JPA-managed field cannot be transient | ||||
|         property "sonar.issue.ignore.multicriteria.S3437.resourceKey", "src/main/java/**/*" | ||||
|         property "sonar.issue.ignore.multicriteria.S3437.ruleKey", "squid:S3437" | ||||
|  | ||||
|         // Rule https://sonarcloud.io/coding_rules?open=squid%3AUndocumentedApi&rule_key=squid%3AUndocumentedApi is ignored, as we want to follow "clean code" guidelines and classes, methods and arguments names should be self-explanatory | ||||
|         property "sonar.issue.ignore.multicriteria.UndocumentedApi.resourceKey", "src/main/java/**/*" | ||||
|         property "sonar.issue.ignore.multicriteria.UndocumentedApi.ruleKey", "squid:UndocumentedApi" | ||||
|         // Rule https://sonarcloud.io/coding_rules?open=squid%3AS4502&rule_key=squid%3AS4502 is ignored, as for JWT tokens we are not subject to CSRF attack | ||||
|         property "sonar.issue.ignore.multicriteria.S4502.resourceKey", "src/main/java/**/*" | ||||
|         property "sonar.issue.ignore.multicriteria.S4502.ruleKey", "squid:S4502" | ||||
|  | ||||
|         // Rule https://sonarcloud.io/coding_rules?open=squid%3AS4684&rule_key=squid%3AS4684 | ||||
|         property "sonar.issue.ignore.multicriteria.S4684.resourceKey", "src/main/java/**/*" | ||||
|         property "sonar.issue.ignore.multicriteria.S4684.ruleKey", "squid:S4684" | ||||
|  | ||||
|         property "sonar.jacoco.reportPaths", "${project.buildDir}/jacoco/test.exec" | ||||
|         property "sonar.java.codeCoveragePlugin", "jacoco" | ||||
|         property "sonar.typescript.lcov.reportPaths", "${project.buildDir}/test-results/lcov.info" | ||||
|         property "sonar.junit.reportPaths", "${project.buildDir}/test-results" | ||||
|         property "sonar.sources", "${project.projectDir}/src/main/" | ||||
|         property "sonar.tests", "${project.projectDir}/src/test/" | ||||
|     } | ||||
| } | ||||
| @@ -1,28 +0,0 @@ | ||||
| /* | ||||
|  * Plugin that provides API-first development using OpenAPI-generator to | ||||
|  * generate Spring-MVC endpoint stubs at compile time from an OpenAPI definition file | ||||
|  */ | ||||
| apply plugin: 'org.openapi.generator' | ||||
|  | ||||
| openApiGenerate { | ||||
|     generatorName = "spring" | ||||
|     inputSpec = "$rootDir/src/main/resources/swagger/api.yml".toString() | ||||
|     outputDir = "$buildDir/openapi".toString() | ||||
|     apiPackage = "org.hostsharing.hsadminng.web.api" | ||||
|     modelPackage = "org.hostsharing.hsadminng.web.api.model" | ||||
|     apiFilesConstrainedTo = [""] | ||||
|     modelFilesConstrainedTo = [""] | ||||
|     supportingFilesConstrainedTo = ["ApiUtil.java"] | ||||
|     configOptions = [delegatePattern: "true"] | ||||
|     validateSpec = true | ||||
| } | ||||
|  | ||||
| sourceSets { | ||||
|     main { | ||||
|         java { | ||||
|             srcDir file("${project.buildDir.path}/openapi/src/main/java") | ||||
|         } | ||||
|     } | ||||
| } | ||||
|  | ||||
| compileJava.dependsOn("openApiGenerate") | ||||
							
								
								
									
										
											BIN
										
									
								
								gradle/wrapper/gradle-wrapper.jar
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										
											BIN
										
									
								
								gradle/wrapper/gradle-wrapper.jar
									
									
									
									
										vendored
									
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										6
									
								
								gradle/wrapper/gradle-wrapper.properties
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								gradle/wrapper/gradle-wrapper.properties
									
									
									
									
										vendored
									
									
								
							| @@ -1,6 +0,0 @@ | ||||
| #Sun Apr 28 06:46:48 CEST 2019 | ||||
| distributionBase=GRADLE_USER_HOME | ||||
| distributionPath=wrapper/dists | ||||
| zipStoreBase=GRADLE_USER_HOME | ||||
| zipStorePath=wrapper/dists | ||||
| distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip | ||||
| @@ -1,3 +0,0 @@ | ||||
| dependencies { | ||||
|     compile "org.springframework.cloud:spring-cloud-starter-zipkin" | ||||
| } | ||||
		Reference in New Issue
	
	Block a user