aboutsummaryrefslogtreecommitdiffstats
path: root/buildSrc
diff options
context:
space:
mode:
authorFiete Ostkamp <Fiete.Ostkamp@telekom.de>2023-07-11 08:44:51 +0000
committerFiete Ostkamp <Fiete.Ostkamp@telekom.de>2023-07-11 08:44:51 +0000
commitb146259516cc90cc9084bdf2f69c358b896cfdf7 (patch)
treecfbe215be6415cd2ffb0f03d23eaae26b3886bf1 /buildSrc
parent24a8c0fc70f6493bd7f07f12c723b7e2acf3f558 (diff)
history repo code is missing
Issue-ID: PORTALNG-8 Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de> Change-Id: I01f1789eb840661115bfd806a0622d02666100c0
Diffstat (limited to 'buildSrc')
-rw-r--r--buildSrc/build.gradle9
-rw-r--r--buildSrc/src/main/groovy/org.onap.portal.history.java-application-conventions.gradle11
-rw-r--r--buildSrc/src/main/groovy/org.onap.portal.history.java-common-conventions.gradle28
-rw-r--r--buildSrc/src/main/groovy/org.onap.portal.history.java-library-conventions.gradle11
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'
+}