Skip to content

Commit 236260e

Browse files
committed
chore: execute gradle init
1 parent 88521bd commit 236260e

31 files changed

+990
-0
lines changed

.gitattributes

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#
2+
# https://help.github.com/articles/dealing-with-line-endings/
3+
#
4+
# Linux start script should use lf
5+
/gradlew text eol=lf
6+
7+
# These are Windows script files and should use crlf
8+
*.bat text eol=crlf
9+
10+
# Binary files should be left untouched
11+
*.jar binary
12+

.gitignore

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

.idea/.gitignore

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

.idea/compiler.xml

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

.idea/ktfmt.xml

+6
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/palantir-java-format.xml

+6
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.

app/build.gradle

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/*
2+
* This file was generated by the Gradle 'init' task.
3+
*
4+
* This project uses @Incubating APIs which are subject to change.
5+
*/
6+
7+
plugins {
8+
id 'buildlogic.java-application-conventions'
9+
}
10+
11+
dependencies {
12+
implementation 'org.apache.commons:commons-text'
13+
implementation project(':utilities')
14+
}
15+
16+
application {
17+
// Define the main class for the application.
18+
mainClass = 'org.example.app.App'
19+
}
+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/*
2+
* This source file was generated by the Gradle 'init' task
3+
*/
4+
package org.example.app;
5+
6+
import org.example.list.LinkedList;
7+
8+
import static org.example.utilities.StringUtils.join;
9+
import static org.example.utilities.StringUtils.split;
10+
import static org.example.app.MessageUtils.getMessage;
11+
12+
import org.apache.commons.text.WordUtils;
13+
14+
public class App {
15+
public static void main(String[] args) {
16+
LinkedList tokens;
17+
tokens = split(getMessage());
18+
String result = join(tokens);
19+
System.out.println(WordUtils.capitalize(result));
20+
}
21+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/*
2+
* This source file was generated by the Gradle 'init' task
3+
*/
4+
package org.example.app;
5+
6+
class MessageUtils {
7+
public static String getMessage() {
8+
return "Hello World!";
9+
}
10+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/*
2+
* This source file was generated by the Gradle 'init' task
3+
*/
4+
package org.example.app;
5+
6+
import org.junit.jupiter.api.Test;
7+
8+
import static org.junit.jupiter.api.Assertions.assertEquals;
9+
10+
class MessageUtilsTest {
11+
@Test void testGetMessage() {
12+
assertEquals("Hello World!", MessageUtils.getMessage());
13+
}
14+
}

build-logic/build.gradle

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*
2+
* This file was generated by the Gradle 'init' task.
3+
*
4+
* This project uses @Incubating APIs which are subject to change.
5+
*/
6+
7+
plugins {
8+
// Support convention plugins written in Groovy. Convention plugins are build scripts in 'src/main' that automatically become available as plugins in the main build.
9+
id 'groovy-gradle-plugin'
10+
}
11+
12+
repositories {
13+
// Use the plugin portal to apply community plugins in convention plugins.
14+
gradlePluginPortal()
15+
}

build-logic/settings.gradle

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*
2+
* This file was generated by the Gradle 'init' task.
3+
*
4+
* This settings file is used to specify which projects to include in your build-logic build.
5+
* This project uses @Incubating APIs which are subject to change.
6+
*/
7+
8+
dependencyResolutionManagement {
9+
// Reuse version catalog from the main build.
10+
versionCatalogs {
11+
create('libs', { from(files("../gradle/libs.versions.toml")) })
12+
}
13+
}
14+
15+
rootProject.name = 'build-logic'
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/*
2+
* This file was generated by the Gradle 'init' task.
3+
*
4+
* This project uses @Incubating APIs which are subject to change.
5+
*/
6+
7+
plugins {
8+
// Apply the common convention plugin for shared build configuration between library and application projects.
9+
id 'buildlogic.java-common-conventions'
10+
11+
// Apply the application plugin to add support for building a CLI application in Java.
12+
id 'application'
13+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/*
2+
* This file was generated by the Gradle 'init' task.
3+
*
4+
* This project uses @Incubating APIs which are subject to change.
5+
*/
6+
7+
plugins {
8+
// Apply the java Plugin to add support for Java.
9+
id 'java'
10+
}
11+
12+
repositories {
13+
// Use Maven Central for resolving dependencies.
14+
mavenCentral()
15+
}
16+
17+
dependencies {
18+
constraints {
19+
// Define dependency versions as constraints
20+
implementation 'org.apache.commons:commons-text:1.12.0'
21+
}
22+
}
23+
24+
testing {
25+
suites {
26+
// Configure the built-in test suite
27+
test {
28+
// Use JUnit Jupiter test framework
29+
useJUnitJupiter('5.11.1')
30+
}
31+
}
32+
}
33+
34+
// Apply a specific Java toolchain to ease working on different environments.
35+
java {
36+
toolchain {
37+
languageVersion = JavaLanguageVersion.of(21)
38+
}
39+
}

0 commit comments

Comments
 (0)