diff options
Diffstat (limited to 'buildSrc')
4 files changed, 59 insertions, 0 deletions
diff --git a/buildSrc/build.gradle b/buildSrc/build.gradle new file mode 100644 index 0000000..834af3a --- /dev/null +++ b/buildSrc/build.gradle @@ -0,0 +1,9 @@ +/* + * This file was generated by the Gradle 'init' task. + */ + +plugins { + // Support convention plugins written in Groovy. Convention plugins are build scripts in 'src/main' that automatically become available as plugins in the main build. + id 'groovy-gradle-plugin' +} + diff --git a/buildSrc/src/main/groovy/org.onap.portal.history.java-application-conventions.gradle b/buildSrc/src/main/groovy/org.onap.portal.history.java-application-conventions.gradle new file mode 100644 index 0000000..be78cf2 --- /dev/null +++ b/buildSrc/src/main/groovy/org.onap.portal.history.java-application-conventions.gradle @@ -0,0 +1,11 @@ +/* + * This file was generated by the Gradle 'init' task. + */ + +plugins { + // Apply the common convention plugin for shared build configuration between library and application projects. + id 'org.onap.portal.history.java-common-conventions' + + // Apply the application plugin to add support for building a CLI application in Java. + id 'application' +} diff --git a/buildSrc/src/main/groovy/org.onap.portal.history.java-common-conventions.gradle b/buildSrc/src/main/groovy/org.onap.portal.history.java-common-conventions.gradle new file mode 100644 index 0000000..16cf302 --- /dev/null +++ b/buildSrc/src/main/groovy/org.onap.portal.history.java-common-conventions.gradle @@ -0,0 +1,28 @@ +/* + * This file was generated by the Gradle 'init' task. + */ + +plugins { + // Apply the java Plugin to add support for Java. + id 'java' + id 'idea' +} + +repositories { +maven { + url "https://plugins.gradle.org/m2/" + } + mavenCentral() +} + +dependencies { + implementation 'org.springframework.boot:spring-boot-starter-webflux:2.5.5' + + // Use JUnit Jupiter for testing. + testImplementation 'org.junit.jupiter:junit-jupiter:5.7.2' +} + +tasks.named('test') { + // Use JUnit Platform for unit tests. + useJUnitPlatform() +} diff --git a/buildSrc/src/main/groovy/org.onap.portal.history.java-library-conventions.gradle b/buildSrc/src/main/groovy/org.onap.portal.history.java-library-conventions.gradle new file mode 100644 index 0000000..24ddad6 --- /dev/null +++ b/buildSrc/src/main/groovy/org.onap.portal.history.java-library-conventions.gradle @@ -0,0 +1,11 @@ +/* + * This file was generated by the Gradle 'init' task. + */ + +plugins { + // Apply the common convention plugin for shared build configuration between library and application projects. + id 'org.onap.portal.history.java-common-conventions' + + // Apply the java-library plugin for API and implementation separation. + id 'java-library' +} |