diff --git a/.mvn/settings.xml b/.mvn/settings.xml new file mode 100644 index 0000000..4c81c02 --- /dev/null +++ b/.mvn/settings.xml @@ -0,0 +1,65 @@ + + + + homelab + + nexus-snapshot::${env.SNAPSHOT_DEPLOYMENT_REPOSITORY_URL} + nexus-release::${env.RELEASE_DEPLOYMENT_REPOSITORY_URL} + + + + nexus-snapshot + Home Lab Nexus Snapshot + + false + + + true + always + warn + + ${env.SNAPSHOT_DEPLOYMENT_REPOSITORY_URL} + default + + + nexus-release + Home Lab Nexus Release + + true + always + warn + + + false + + ${env.RELEASE_DEPLOYMENT_REPOSITORY_URL} + default + + + + + nexus-central + Home Lab Nexus Maven Central + + true + warn + + ${env.NEXUS_CENTRAL_REPOSITORY_URL} + default + + + + + + + nexus-snapshot + ${env.NEXUS_USERNAME} + ${env.NEXUS_PASSWORD} + + + nexus-release + ${env.NEXUS_USERNAME} + ${env.NEXUS_PASSWORD} + + + \ No newline at end of file diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..5d3f0f4 --- /dev/null +++ b/pom.xml @@ -0,0 +1,69 @@ + + + 4.0.0 + + + sydney.cheng + ec-super-pom + 1.0.1 + + + ec-config-server + 1.0.0-SNAPSHOT + jar + + + + MIT License + https://www.opensource.org/licenses/mit-license.php + + + + + Edward Cheng + edward@cheng.sydney + cheng.sydney + https://3dwardch3ng.github.io/ + + + + scm:git:git://github.com/3dwardch3ng/ec-config-server.git + scm:git:ssh://github.com:3dwardch3ng/ec-config-server.git + https://github.com/3dwardch3ng/ec-config-server/tree/main + + + GitHub + https://github.com/3dwardch3ng/ec-config-server/issues + + + + 17 + 17 + UTF-8 + + jacoco + reuseReports + ${project.basedir}/../target/site/jacoco/jacoco.xml + java + **/config/* + 3dwardch3ng + https://sonarqube.cluster.edward.sydney + + + + + org.springframework.cloud + spring-cloud-config-server + + + org.springframework.boot + spring-boot-starter-security + + + org.springframework.boot + spring-boot-starter-web + + + \ No newline at end of file diff --git a/src/main/java/sydney/cheng/microservice/Application.java b/src/main/java/sydney/cheng/microservice/Application.java new file mode 100644 index 0000000..71ff6be --- /dev/null +++ b/src/main/java/sydney/cheng/microservice/Application.java @@ -0,0 +1,13 @@ +package sydney.cheng.microservice; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.cloud.config.server.EnableConfigServer; + +@SpringBootApplication +@EnableConfigServer +public class Application { + public static void main(String[] arguments) { + SpringApplication.run(Application.class, arguments); + } +} diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties new file mode 100644 index 0000000..d0390b4 --- /dev/null +++ b/src/main/resources/application.properties @@ -0,0 +1,2 @@ +server.port=8888 +spring.cloud.config.server.git.uri: file://opt/config \ No newline at end of file