-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6d6d297
commit c20afa0
Showing
12 changed files
with
119 additions
and
1 deletion.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
apply from: "$rootDir/gradle/spring-boot-app.gradle" | ||
|
||
description = 'The Codekvast Admin server' | ||
applicationName = 'codekvast-admin' | ||
archivesBaseName = 'codekvast-admin' | ||
version = codekvastVersion | ||
group = 'crisp' | ||
mainClassName = 'io.codekvast.admin.CodekvastAdminApplication' | ||
|
||
dependencies { | ||
compile "de.codecentric:spring-boot-admin-starter-server:$springBootAdminVersion" | ||
runtime 'org.springframework.boot:spring-boot-starter-webflux' | ||
} | ||
|
||
//--- Packaging ------------------------------------------------------------------------------------------------------------------ | ||
bootJar { | ||
launchScript { | ||
properties([ | ||
'initInfoProvides': applicationName, | ||
'initInfoShortDescription': 'Codekvast Admin', | ||
'initInfoDescription': 'Codekvast Admin is an admin console for other Codekvast micro services', | ||
]) | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
product/admin/src/main/java/io/codekvast/admin/CodekvastAdminApplication.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* | ||
* Copyright (c) 2015-2018 Hallin Information Technology AB | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
* in the Software without restriction, including without limitation the rights | ||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
* copies of the Software, and to permit persons to whom the Software is | ||
* furnished to do so, subject to the following conditions: | ||
* | ||
* The above copyright notice and this permission notice shall be included in | ||
* all copies or substantial portions of the Software. | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
* THE SOFTWARE. | ||
*/ | ||
package io.codekvast.admin; | ||
|
||
import de.codecentric.boot.admin.server.config.EnableAdminServer; | ||
import org.springframework.boot.SpringApplication; | ||
import org.springframework.boot.autoconfigure.SpringBootApplication; | ||
|
||
@SpringBootApplication | ||
@EnableAdminServer | ||
public class CodekvastAdminApplication { | ||
|
||
public static void main(String[] args) { | ||
SpringApplication.run(CodekvastAdminApplication.class, args); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#------------------------------------------------------------------------------------------------------- | ||
# This file contains ONLY stuff that is injected by Gradle. | ||
# Gradle's expand() does not play well with YAML files... | ||
# | ||
# We use JSP syntax <%= %> to avoid runtime errors if running with an unexpanded file. Spring also | ||
# uses ${} syntax. | ||
#------------------------------------------------------------------------------------------------------- | ||
|
||
# info.build.* is visible in /actuator/info | ||
info.build.gradle.name = <%= project.archivesBaseName %> | ||
info.build.gradle.description = <%= project.description %> | ||
info.build.gradle.version = <%= project.codekvastDisplayVersion %> | ||
info.build.git.id = <%= project.gitId %> | ||
info.build.git.committer = <%= project.gitCommitter %> | ||
info.build.git.message = <%= project.gitShortMessage %> | ||
info.build.git.time = <%= project.gitTime %> | ||
|
||
# application.title and application.version are shown in the banner on the console | ||
application.title = Codekvast Admin | ||
application.version = <%= project.codekvastDisplayVersion %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
server: | ||
port: 8083 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
_________ .___ __ __ _____ .___ .__ | ||
\_ ___ \ ____ __| _/____ | | _____ _______ _______/ |_ / _ \ __| _/_____ |__| ____ | ||
/ \ \/ / _ \ / __ |/ __ \| |/ /\ \/ /\__ \ / ___/\ __\ / /_\ \ / __ |/ \| |/ \ | ||
\ \___( <_> ) /_/ \ ___/| < \ / / __ \_\___ \ | | / | \/ /_/ | Y Y \ | | \ | ||
\______ /\____/\____ |\___ >__|_ \ \_/ (____ /____ > |__| \____|__ /\____ |__|_| /__|___| / | ||
\/ \/ \/ \/ \/ \/ \/ \/ \/ \/ | ||
${application.title} ${AnsiColor.MAGENTA}V${application.version}${AnsiColor.DEFAULT} running on Spring Boot ${AnsiColor.MAGENTA}${spring-boot.version}${AnsiColor.DEFAULT} |
16 changes: 16 additions & 0 deletions
16
product/admin/src/test/java/io/codekvast/admin/CodekvastAdminApplicationTests.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package io.codekvast.admin; | ||
|
||
import org.junit.Test; | ||
import org.junit.runner.RunWith; | ||
import org.springframework.boot.test.context.SpringBootTest; | ||
import org.springframework.test.context.junit4.SpringRunner; | ||
|
||
@RunWith(SpringRunner.class) | ||
@SpringBootTest(classes = CodekvastAdminApplication.class) | ||
public class CodekvastAdminApplicationTests { | ||
|
||
@Test | ||
public void contextLoads() { | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters