Skip to content

Commit 2d538b7

Browse files
Add basic gradle structure and build scripts
Also adds .gitignore content
1 parent 7232a08 commit 2d538b7

File tree

94 files changed

+612
-24
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+612
-24
lines changed

.gitignore

+186
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,186 @@
1+
# Created by https://www.toptal.com/developers/gitignore/api/git,intellij,java,gradle
2+
# Edit at https://www.toptal.com/developers/gitignore?templates=git,intellij,java,gradle
3+
4+
### Git ###
5+
# Created by git for backups. To disable backups in Git:
6+
# $ git config --global mergetool.keepBackup false
7+
*.orig
8+
9+
# Created by git when using merge tools for conflicts
10+
*.BACKUP.*
11+
*.BASE.*
12+
*.LOCAL.*
13+
*.REMOTE.*
14+
*_BACKUP_*.txt
15+
*_BASE_*.txt
16+
*_LOCAL_*.txt
17+
*_REMOTE_*.txt
18+
19+
### Intellij ###
20+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
21+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
22+
23+
# User-specific stuff
24+
.idea/**/workspace.xml
25+
.idea/**/tasks.xml
26+
.idea/**/usage.statistics.xml
27+
.idea/**/dictionaries
28+
.idea/**/shelf
29+
30+
# AWS User-specific
31+
.idea/**/aws.xml
32+
33+
# Generated files
34+
.idea/**/contentModel.xml
35+
36+
# Sensitive or high-churn files
37+
.idea/**/dataSources/
38+
.idea/**/dataSources.ids
39+
.idea/**/dataSources.local.xml
40+
.idea/**/sqlDataSources.xml
41+
.idea/**/dynamic.xml
42+
.idea/**/uiDesigner.xml
43+
.idea/**/dbnavigator.xml
44+
45+
# Gradle
46+
.idea/**/gradle.xml
47+
.idea/**/libraries
48+
49+
# Gradle and Maven with auto-import
50+
# When using Gradle or Maven with auto-import, you should exclude module files,
51+
# since they will be recreated, and may cause churn. Uncomment if using
52+
# auto-import.
53+
# .idea/artifacts
54+
# .idea/compiler.xml
55+
# .idea/jarRepositories.xml
56+
# .idea/modules.xml
57+
# .idea/*.iml
58+
# .idea/modules
59+
# *.iml
60+
# *.ipr
61+
62+
# CMake
63+
cmake-build-*/
64+
65+
# Mongo Explorer plugin
66+
.idea/**/mongoSettings.xml
67+
68+
# File-based project format
69+
*.iws
70+
71+
# IntelliJ
72+
out/
73+
74+
# mpeltonen/sbt-idea plugin
75+
.idea_modules/
76+
77+
# JIRA plugin
78+
atlassian-ide-plugin.xml
79+
80+
# Cursive Clojure plugin
81+
.idea/replstate.xml
82+
83+
# SonarLint plugin
84+
.idea/sonarlint/
85+
86+
# Crashlytics plugin (for Android Studio and IntelliJ)
87+
com_crashlytics_export_strings.xml
88+
crashlytics.properties
89+
crashlytics-build.properties
90+
fabric.properties
91+
92+
# Editor-based Rest Client
93+
.idea/httpRequests
94+
95+
# Android studio 3.1+ serialized cache file
96+
.idea/caches/build_file_checksums.ser
97+
98+
### Intellij Patch ###
99+
# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721
100+
101+
# *.iml
102+
# modules.xml
103+
# .idea/misc.xml
104+
# *.ipr
105+
106+
# Sonarlint plugin
107+
# https://plugins.jetbrains.com/plugin/7973-sonarlint
108+
.idea/**/sonarlint/
109+
110+
# SonarQube Plugin
111+
# https://plugins.jetbrains.com/plugin/7238-sonarqube-community-plugin
112+
.idea/**/sonarIssues.xml
113+
114+
# Markdown Navigator plugin
115+
# https://plugins.jetbrains.com/plugin/7896-markdown-navigator-enhanced
116+
.idea/**/markdown-navigator.xml
117+
.idea/**/markdown-navigator-enh.xml
118+
.idea/**/markdown-navigator/
119+
120+
# Cache file creation bug
121+
# See https://youtrack.jetbrains.com/issue/JBR-2257
122+
.idea/$CACHE_FILE$
123+
124+
# CodeStream plugin
125+
# https://plugins.jetbrains.com/plugin/12206-codestream
126+
.idea/codestream.xml
127+
128+
# Azure Toolkit for IntelliJ plugin
129+
# https://plugins.jetbrains.com/plugin/8053-azure-toolkit-for-intellij
130+
.idea/**/azureSettings.xml
131+
132+
### Java ###
133+
# Compiled class file
134+
*.class
135+
136+
# Log file
137+
*.log
138+
139+
# BlueJ files
140+
*.ctxt
141+
142+
# Mobile Tools for Java (J2ME)
143+
.mtj.tmp/
144+
145+
# Package Files #
146+
*.jar
147+
*.war
148+
*.nar
149+
*.ear
150+
*.zip
151+
*.tar.gz
152+
*.rar
153+
154+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
155+
hs_err_pid*
156+
replay_pid*
157+
158+
### Gradle ###
159+
.gradle
160+
**/build/
161+
!src/**/build/
162+
163+
# Ignore Gradle GUI config
164+
gradle-app.setting
165+
166+
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
167+
!gradle-wrapper.jar
168+
169+
# Avoid ignore Gradle wrappper properties
170+
!gradle-wrapper.properties
171+
172+
# Cache of project
173+
.gradletasknamecache
174+
175+
# Eclipse Gradle plugin generated files
176+
# Eclipse Core
177+
.project
178+
# JDT-specific (Eclipse Java Development Tools)
179+
.classpath
180+
181+
### Gradle Patch ###
182+
# Java heap dump
183+
*.hprof
184+
185+
# End of https://www.toptal.com/developers/gitignore/api/git,intellij,java,gradle
186+

.idea/compiler.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/jarRepositories.xml

+20
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

+5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build.gradle

+8-24
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,11 @@
1-
plugins {
2-
id 'org.springframework.boot' version '3.0.0'
3-
id 'io.spring.dependency-management' version '1.1.0'
4-
id "com.google.cloud.tools.jib" version "3.3.0"
5-
id 'java'
6-
}
7-
8-
dependencies {
9-
implementation 'org.springframework.boot:spring-boot-starter-web'
10-
}
1+
group 'org.togetherjava'
2+
version '1.0-SNAPSHOT'
113

12-
var outputImage = 'togetherjava.org:5001/togetherjava/website:' + System.getenv('BRANCH_NAME') ?: 'latest'
13-
14-
jib {
15-
from.image = 'eclipse-temurin:19'
16-
to {
17-
image = outputImage
18-
auth {
19-
username = System.getenv('REGISTRY_USER') ?: ''
20-
password = System.getenv('REGISTRY_PASSWORD') ?: ''
21-
}
22-
}
23-
container {
24-
setPorts(["5051"].asList())
25-
setCreationTime(Instant.now().toString())
4+
subprojects {
5+
group = rootProject.group
6+
version = rootProject.version
7+
8+
repositories {
9+
mavenCentral()
2610
}
2711
}

gradle/wrapper/gradle-wrapper.jar

60.2 KB
Binary file not shown.
+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip
4+
networkTimeout=10000
5+
zipStoreBase=GRADLE_USER_HOME
6+
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)