-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Poprawki do rozwiązania
- Loading branch information
fx30400
authored and
Bartlomiej GORAJ
committed
Jan 25, 2023
1 parent
a1f4a7e
commit 5efe1b9
Showing
68 changed files
with
1,797 additions
and
282 deletions.
There are no files selected for viewing
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,44 @@ | ||
# Handle line endings automatically for files detected as text | ||
# and leave all files detected as binary untouched. | ||
* text=auto | ||
|
||
# | ||
# The above will handle all files NOT found below | ||
# | ||
# These files are text and should be normalized (Convert crlf => lf) | ||
*.gitattributes text | ||
.gitignore text | ||
*.md text diff=markdown | ||
.sh text eol=lf | ||
|
||
# | ||
# Exclude files from exporting | ||
# | ||
|
||
.gitattributes export-ignore | ||
.gitignore export-ignore | ||
|
||
# Compiled class file | ||
*.class | ||
|
||
# Log file | ||
*.log | ||
|
||
# BlueJ files | ||
*.ctxt | ||
|
||
# Mobile Tools for Java (J2ME) | ||
.mtj.tmp/ | ||
|
||
# Package Files # | ||
*.jar | ||
*.war | ||
*.nar | ||
*.ear | ||
*.zip | ||
*.tar.gz | ||
*.rar | ||
|
||
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml | ||
hs_err_pid* | ||
replay_pid* |
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 |
---|---|---|
@@ -1,37 +1,73 @@ | ||
HELP.md | ||
.gradle | ||
build/ | ||
!gradle/wrapper/gradle-wrapper.jar | ||
!**/src/main/**/build/ | ||
!**/src/test/**/build/ | ||
/build/ | ||
|
||
# Ignore Gradle GUI config | ||
gradle-app.setting | ||
|
||
### STS ### | ||
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored) | ||
!gradle-wrapper.jar | ||
|
||
# Cache of project | ||
.gradletasknamecache | ||
|
||
# gradle/wrapper/gradle-wrapper.properties | ||
target/ | ||
!.mvn/wrapper/maven-wrapper.jar | ||
!**/src/main/**/target/ | ||
!**/src/test/**/target/ | ||
|
||
### IntelliJ IDEA ### | ||
.idea | ||
*.iws | ||
*.iml | ||
*.ipr | ||
|
||
### Eclipse ### | ||
.apt_generated | ||
.classpath | ||
.factorypath | ||
.project | ||
.settings | ||
.springBeans | ||
.sts4-cache | ||
bin/ | ||
!**/src/main/**/bin/ | ||
!**/src/test/**/bin/ | ||
|
||
### IntelliJ IDEA ### | ||
.idea | ||
*.iws | ||
*.iml | ||
*.ipr | ||
out/ | ||
!**/src/main/**/out/ | ||
!**/src/test/**/out/ | ||
|
||
### NetBeans ### | ||
/nbproject/private/ | ||
/nbbuild/ | ||
/dist/ | ||
/nbdist/ | ||
/.nb-gradle/ | ||
build/ | ||
!**/src/main/**/build/ | ||
!**/src/test/**/build/ | ||
|
||
### VS Code ### | ||
.vscode/ | ||
|
||
### Mac OS ### | ||
.DS_Store | ||
|
||
# Compiled class file | ||
*.class | ||
|
||
# Log file | ||
*.log | ||
|
||
# BlueJ files | ||
*.ctxt | ||
|
||
# Mobile Tools for Java (J2ME) | ||
.mtj.tmp/ | ||
|
||
# Package Files # | ||
*.jar | ||
*.war | ||
*.nar | ||
*.ear | ||
*.zip | ||
*.tar.gz | ||
*.rar | ||
|
||
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml | ||
hs_err_pid* | ||
replay_pid* |
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,73 @@ | ||
buildscript { | ||
ext { | ||
springBootVersion = '2.7.7' | ||
} | ||
repositories { | ||
maven { | ||
url "https://nexus.rbinternational.corp/nexus/repository/public" | ||
} | ||
mavenCentral() | ||
gradlePluginPortal() | ||
} | ||
dependencies { | ||
classpath("org.springframework.boot:spring-boot-starter:${springBootVersion}") | ||
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}") | ||
classpath "org.postgresql:postgresql:42.4.2" | ||
classpath "org.liquibase:liquibase-gradle-plugin:2.1.1" | ||
classpath "org.yaml:snakeyaml:1.31" | ||
} | ||
} | ||
|
||
apply plugin: 'org.liquibase.gradle' | ||
apply plugin: 'org.springframework.boot' | ||
apply plugin: 'java' | ||
apply plugin: 'io.spring.dependency-management' | ||
|
||
group = 'pl.com.rbinternational' | ||
version = '0.0.1-SNAPSHOT' | ||
|
||
repositories { | ||
maven { url "https://nexus.rbinternational.corp/nexus/repository/public" } | ||
maven { url "https://plugins.gradle.org/m2/" } | ||
mavenCentral() | ||
gradlePluginPortal() | ||
} | ||
|
||
dependencies { | ||
implementation 'org.springframework.boot:spring-boot-starter' | ||
implementation 'org.springframework.boot:spring-boot-starter-data-jpa:2.7.7' | ||
implementation 'org.liquibase:liquibase-core' | ||
implementation 'org.postgresql:postgresql' | ||
implementation 'org.yaml:snakeyaml' | ||
liquibaseRuntime 'org.liquibase:liquibase-core' | ||
liquibaseRuntime 'org.postgresql:postgresql' | ||
liquibaseRuntime 'org.yaml:snakeyaml' | ||
liquibaseRuntime 'info.picocli:picocli:4.7.0' | ||
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.0' | ||
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.0' | ||
implementation project(':library-gui') | ||
} | ||
|
||
test { | ||
useJUnitPlatform() | ||
} | ||
|
||
jar { | ||
manifest { | ||
attributes( | ||
'Main-Class': 'pl.com.rbinternational.LibraryApplication' | ||
) | ||
} | ||
} | ||
|
||
liquibase { | ||
activities { | ||
main { | ||
classPath "library-app/src/main/resources" | ||
changeLogFile "db/changelog/db.changelog-master.yaml" | ||
url project.hasProperty("url") ? project.getProperty("url") : "jdbc:postgresql://localhost:5432/postgres" | ||
username project.hasProperty("username") ? project.getProperty("username") : "admin" | ||
password project.hasProperty("password") ? project.getProperty("password") : "admin" | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
library-app/src/main/java/pl/com/rbinternational/LibraryApplication.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,12 @@ | ||
package pl.com.rbinternational; | ||
|
||
import org.springframework.boot.SpringApplication; | ||
import org.springframework.boot.autoconfigure.SpringBootApplication; | ||
|
||
@SpringBootApplication | ||
public class LibraryApplication { | ||
|
||
public static void main(String[] args) { | ||
SpringApplication.run(LibraryApplication.class, args); | ||
} | ||
} |
Oops, something went wrong.