Skip to content

Commit 6f6a3dd

Browse files
authored
Merge pull request #16 from Sandro642/patch/groovy
Patch/groovy
2 parents 57d17e2 + 923ddac commit 6f6a3dd

12 files changed

Lines changed: 163 additions & 137 deletions

File tree

.github/workflows/work-jar.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
branches:
55
- main
66
- feature/hook
7+
- patch/groovy
78
permissions:
89
contents: write
910
pages: write

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ build/
44
!**/src/main/**/build/
55
!**/src/test/**/build/
66

7+
src/main/resources/infos.yml
8+
79
### IntelliJ IDEA ###
810
.idea/modules.xml
911
.idea/jarRepositories.xml

.idea/discord.xml

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build.gradle

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
plugins {
2+
id 'java'
3+
id 'application'
4+
id 'maven-publish' // Plugin pour la publication
5+
}
6+
7+
group = 'fr.sandro642.github'
8+
version = '0.1.7.0-SNAPSHOT' // Version de votre projet
9+
10+
// Ajoutez cette tâche à votre build.gradle
11+
tasks.register('printVersion') {
12+
doLast {
13+
println project.version
14+
}
15+
}
16+
17+
repositories {
18+
mavenCentral()
19+
20+
maven {
21+
url 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/'
22+
}
23+
maven {
24+
url 'https://oss.sonatype.org/content/repositories/snapshots/'
25+
}
26+
}
27+
28+
dependencies {
29+
testImplementation platform('org.junit:junit-bom:5.10.0')
30+
testImplementation 'org.junit.jupiter:junit-jupiter'
31+
32+
implementation 'io.projectreactor:reactor-core:3.6.9'
33+
implementation 'org.springframework.boot:spring-boot-starter-webflux:3.2.2'
34+
35+
compileOnly 'org.spigotmc:spigot-api:1.8-R0.1-SNAPSHOT'
36+
}
37+
38+
application {
39+
mainClass = 'fr.sandro642.github.ConnectorAPI'
40+
}
41+
42+
tasks.jar {
43+
manifest {
44+
attributes 'Main-Class': 'fr.sandro642.github.ConnectorAPI'
45+
}
46+
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
47+
}
48+
49+
tasks.test {
50+
useJUnitPlatform()
51+
}
52+
53+
java {
54+
withSourcesJar() // Ajoute le JAR des sources
55+
withJavadocJar() // Ajoute le JAR de Javadoc
56+
}
57+
58+
publishing {
59+
publications {
60+
mavenJava(MavenPublication) {
61+
from components.java
62+
63+
groupId = project.group.toString()
64+
artifactId = 'ConnectorAPI'
65+
version = project.version.toString()
66+
pom {
67+
name = 'ConnectorAPI'
68+
description = 'A library for connecting to APIs'
69+
url = 'https://sandro642.github.io/connectorapi'
70+
licenses {
71+
license {
72+
name = 'The MIT License, Version 2.0'
73+
url = 'https://github.com/Sandro642/ConnectorAPI/blob/patch/groovy/LICENSE'
74+
}
75+
}
76+
developers {
77+
developer {
78+
id = 'sandro642'
79+
name = 'Sandro'
80+
email = 'sandro33810@gmail.com' // Correction de l'email (point-virgule -> point)
81+
}
82+
}
83+
scm {
84+
connection = 'scm:git:git://github.com/sandro642/ConnectorAPI.git'
85+
developerConnection = 'scm:git:ssh://github.com/sandro642/ConnectorAPI.git'
86+
url = 'https://github.com/sandro642/ConnectorAPI'
87+
}
88+
}
89+
}
90+
}
91+
repositories {
92+
maven {
93+
name = 'LocalRepo'
94+
url = uri(layout.buildDirectory.dir('repo')) // Publie dans build/repo
95+
}
96+
}
97+
}

build.gradle.kts

Lines changed: 0 additions & 104 deletions
This file was deleted.

gradle/wrapper/gradle-wrapper.jar

-16.7 KB
Binary file not shown.
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
#Mon Jun 30 15:08:50 CEST 2025
21
distributionBase=GRADLE_USER_HOME
32
distributionPath=wrapper/dists
43
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
56
zipStoreBase=GRADLE_USER_HOME
67
zipStorePath=wrapper/dists

gradlew

100644100755
Lines changed: 30 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)