Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/work-jar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
branches:
- main
- feature/hook
- patch/groovy
permissions:
contents: write
pages: write
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ build/
!**/src/main/**/build/
!**/src/test/**/build/

src/main/resources/infos.yml

### IntelliJ IDEA ###
.idea/modules.xml
.idea/jarRepositories.xml
Expand Down
7 changes: 7 additions & 0 deletions .idea/discord.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

97 changes: 97 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
plugins {
id 'java'
id 'application'
id 'maven-publish' // Plugin pour la publication
}

group = 'fr.sandro642.github'
version = '0.1.7.0-SNAPSHOT' // Version de votre projet

// Ajoutez cette tâche à votre build.gradle
tasks.register('printVersion') {
doLast {
println project.version
}
}

repositories {
mavenCentral()

maven {
url 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/'
}
maven {
url 'https://oss.sonatype.org/content/repositories/snapshots/'
}
}

dependencies {
testImplementation platform('org.junit:junit-bom:5.10.0')
testImplementation 'org.junit.jupiter:junit-jupiter'

implementation 'io.projectreactor:reactor-core:3.6.9'
implementation 'org.springframework.boot:spring-boot-starter-webflux:3.2.2'

compileOnly 'org.spigotmc:spigot-api:1.8-R0.1-SNAPSHOT'
}

application {
mainClass = 'fr.sandro642.github.ConnectorAPI'
}

tasks.jar {
manifest {
attributes 'Main-Class': 'fr.sandro642.github.ConnectorAPI'
}
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}

tasks.test {
useJUnitPlatform()
}

java {
withSourcesJar() // Ajoute le JAR des sources
withJavadocJar() // Ajoute le JAR de Javadoc
}

publishing {
publications {
mavenJava(MavenPublication) {
from components.java

groupId = project.group.toString()
artifactId = 'ConnectorAPI'
version = project.version.toString()
pom {
name = 'ConnectorAPI'
description = 'A library for connecting to APIs'
url = 'https://sandro642.github.io/connectorapi'
licenses {
license {
name = 'The MIT License, Version 2.0'
url = 'https://github.com/Sandro642/ConnectorAPI/blob/patch/groovy/LICENSE'
}
}
developers {
developer {
id = 'sandro642'
name = 'Sandro'
email = 'sandro33810@gmail.com' // Correction de l'email (point-virgule -> point)
}
}
scm {
connection = 'scm:git:git://github.com/sandro642/ConnectorAPI.git'
developerConnection = 'scm:git:ssh://github.com/sandro642/ConnectorAPI.git'
url = 'https://github.com/sandro642/ConnectorAPI'
}
}
}
}
repositories {
maven {
name = 'LocalRepo'
url = uri(layout.buildDirectory.dir('repo')) // Publie dans build/repo
}
}
}
104 changes: 0 additions & 104 deletions build.gradle.kts

This file was deleted.

Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
3 changes: 2 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#Mon Jun 30 15:08:50 CEST 2025
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
43 changes: 30 additions & 13 deletions gradlew
100644 → 100755

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading