Skip to content

Commit

Permalink
Update build.gradle for gradle publish
Browse files Browse the repository at this point in the history
  • Loading branch information
ErrorxCode authored Mar 10, 2024
1 parent 8003cfc commit 6e48019
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion JxInsta/build.gradle
Original file line number Diff line number Diff line change
@@ -1,14 +1,35 @@
plugins {
id 'java-library'
id 'maven-publish'
}

java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

publishing {
publications {
maven(MavenPublication) {
groupId = "com.errorxcode"
artifactId = "JxInsta"
version = "v1.0-beta"
}
}
repositories {
maven {
name = "GitHubPackages"
url = "https://maven.pkg.github.com/ErrorxCode/JxInsta"
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
}

dependencies {
implementation group: 'com.squareup.okhttp3', name: 'okhttp', version: '5.0.0-alpha.11'
implementation 'com.github.ErrorxCode:JSON-java-port:20220320'

}
}

0 comments on commit 6e48019

Please sign in to comment.