Skip to content

Commit 26cbbb9

Browse files
author
Francisco Solis
committed
Initial Commit
0 parents  commit 26cbbb9

File tree

9 files changed

+551
-0
lines changed

9 files changed

+551
-0
lines changed

.gitattributes

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#
2+
# https://help.github.com/articles/dealing-with-line-endings/
3+
#
4+
# These are explicitly windows files and should use crlf
5+
*.bat text eol=crlf
6+

.gitignore

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
target/
2+
pom.xml.tag
3+
pom.xml.releaseBackup
4+
pom.xml.versionsBackup
5+
pom.xml.next
6+
release.properties
7+
dependency-reduced-pom.xml
8+
buildNumber.properties
9+
.mvn/timing.properties
10+
.mvn/wrapper/maven-wrapper.jar
11+
.idea/**/workspace.xml
12+
.idea/**/tasks.xml
13+
.idea/**/usage.statistics.xml
14+
.idea/**/dictionaries
15+
.idea/**/shelf
16+
.idea/**/contentModel.xml
17+
.idea/**/dataSources/
18+
.idea/**/dataSources.ids
19+
.idea/**/dataSources.local.xml
20+
.idea/**/sqlDataSources.xml
21+
.idea/**/dynamic.xml
22+
.idea/**/uiDesigner.xml
23+
.idea/**/dbnavigator.xml
24+
.idea/**/gradle.xml
25+
.idea/**/libraries
26+
cmake-build-*/
27+
.idea/**/mongoSettings.xml
28+
*.iws
29+
out/
30+
.idea_modules/
31+
atlassian-ide-plugin.xml
32+
.idea/replstate.xml
33+
com_crashlytics_export_strings.xml
34+
crashlytics.properties
35+
crashlytics-build.properties
36+
fabric.properties
37+
.idea/httpRequests
38+
.idea/caches/build_file_checksums.ser
39+
*.class
40+
*.log
41+
*.ctxt
42+
.mtj.tmp/
43+
*.jar
44+
*.war
45+
*.nar
46+
*.ear
47+
*.zip
48+
*.tar.gz
49+
*.rar
50+
hs_err_pid*
51+
*.iml
52+
.DS_Store
53+
.AppleDouble
54+
.LSOverride
55+
Icon
56+
._*
57+
.DocumentRevisions-V100
58+
.fseventsd
59+
.Spotlight-V100
60+
.TemporaryItems
61+
.Trashes
62+
.VolumeIcon.icns
63+
.com.apple.timemachine.donotpresent
64+
.AppleDB
65+
.AppleDesktop
66+
Network Trash Folder
67+
Temporary Items
68+
.apdisk
69+
.classpath
70+
.project
71+
.settings/
72+
.env
73+
.secrets.env
74+
.gradle/
75+
build/
76+
bin/
77+
*.pom.xml
78+
modules/

build.gradle

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
import org.apache.tools.ant.filters.ReplaceTokens
2+
3+
plugins {
4+
id 'org.jetbrains.kotlin.jvm' version '1.6.0'
5+
id 'maven-publish'
6+
id 'com.github.johnrengelman.shadow' version '7.1.0'
7+
id 'com.dorongold.task-tree' version '2.1.0'
8+
}
9+
10+
group 'xyz.theprogramsrc'
11+
version '0.1.0-SNAPSHOT'
12+
description 'Just a logger for the SimpleCore API'
13+
14+
repositories {
15+
mavenCentral()
16+
maven { url 'https://repo.theprogramsrc.xyz/repository/maven-snapshots/' }
17+
maven { url 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' }
18+
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
19+
maven { url 'https://oss.sonatype.org/content/repositories/releases/' }
20+
maven { url 'https://oss.sonatype.org/content/groups/public/' }
21+
}
22+
23+
dependencies {
24+
compileOnly 'org.jetbrains.kotlin:kotlin-stdlib:1.6.0'
25+
compileOnly 'org.spigotmc:spigot-api:1.17.1-R0.1-SNAPSHOT'
26+
compileOnly 'net.md-5:bungeecord-api:1.17-R0.1-SNAPSHOT'
27+
compileOnly 'xyz.theprogramsrc:simplecoreapi:0.0.1.1-SNAPSHOT'
28+
29+
testImplementation 'org.junit.jupiter:junit-jupiter:5.8.2'
30+
}
31+
32+
shadowJar {
33+
archiveBaseName.set('LoggingModule')
34+
archiveClassifier.set('')
35+
}
36+
37+
test {
38+
useJUnitPlatform()
39+
}
40+
41+
java {
42+
sourceCompatibility = JavaVersion.VERSION_11
43+
targetCompatibility = JavaVersion.VERSION_11
44+
withJavadocJar()
45+
withSourcesJar()
46+
}
47+
48+
processResources {
49+
filter ReplaceTokens, tokens: [name: rootProject.name, version: project.version.toString(), description: project.description]
50+
}
51+
52+
tasks.withType(JavaCompile) {
53+
options.encoding = 'UTF-8'
54+
}
55+
56+
tasks.withType(Javadoc) {
57+
failOnError false
58+
options.addStringOption('Xdoclint:none', '-quiet')
59+
options.addStringOption('encoding', 'UTF-8')
60+
options.addStringOption('charSet', 'UTF-8')
61+
}
62+
63+
tasks.withType(Copy) {
64+
duplicatesStrategy = DuplicatesStrategy.INCLUDE
65+
exclude 'META-INF/**'
66+
}
67+
68+
tasks.withType(Jar) {
69+
duplicatesStrategy = DuplicatesStrategy.INCLUDE
70+
exclude 'META-INF/**'
71+
}
72+
73+
configurations {
74+
testImplementation {
75+
extendsFrom(compileOnly)
76+
}
77+
}
78+
79+
sourceSets {
80+
main.kotlin.srcDirs += 'src/main/kotlin'
81+
main.resources.srcDirs += 'src/main/resources'
82+
}
83+
84+
publishing {
85+
repositories {
86+
maven {
87+
name = 'TheProgramSrcRepository'
88+
credentials.username = System.getenv('NEXUS_USERNAME')
89+
credentials.password = System.getenv('NEXUS_PASSWORD')
90+
url = uri(version.contains('-SNAPSHOT') ? 'https://repo.theprogramsrc.xyz/repository/maven-snapshots/' : 'https://repo.theprogramsrc.xyz/repository/maven-releases/')
91+
}
92+
// maven {
93+
// name = 'GitHubPackages'
94+
// url = 'https://maven.pkg.github.com/TheProgramSrc/SimpleCore-LoggingModule'
95+
// credentials {
96+
// username = System.getenv('GITHUB_ACTOR')
97+
// password = System.getenv('GITHUB_TOKEN')
98+
// }
99+
// }
100+
}
101+
publications {
102+
mavenJava(MavenPublication) {
103+
artifactId = 'loggingmodule'
104+
105+
from components.java
106+
107+
pom.withXml {
108+
asNode().appendNode('packaging', 'jar')
109+
asNode().remove(asNode().get('dependencies'))
110+
}
111+
}
112+
}
113+
}
114+
115+
javadoc {
116+
if(JavaVersion.current().isJava9Compatible()) {
117+
options.addBooleanOption('html5', true)
118+
}
119+
}
120+
121+
publish.dependsOn clean, test, jar, shadowJar

gradle/wrapper/gradle-wrapper.jar

58.1 KB
Binary file not shown.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1-bin.zip
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)