Skip to content

Commit

Permalink
Merge pull request #68 from bitsoex/update-to-java-8
Browse files Browse the repository at this point in the history
Update to java 8
  • Loading branch information
chochos authored Jan 2, 2025
2 parents 2fb7e80 + f6e8268 commit 1e36db1
Show file tree
Hide file tree
Showing 14 changed files with 449 additions and 261 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
.idea/*
*.iml
*.ipr
*.iws
/local.properties
.settings/*
bin/*
Expand Down
63 changes: 28 additions & 35 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
apply plugin: 'java'
apply plugin: 'maven'
plugins {
id 'java-library'
id 'maven-publish'
id 'idea'
}

group = 'com.bitso'
version = '3.2.0-SNAPSHOT'
version = '4.0.0'

description = "bitso-java"

description = """bitso-java"""
sourceCompatibility = 8
targetCompatibility = 8

sourceCompatibility = 1.5
targetCompatibility = 1.5
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
Expand All @@ -19,40 +23,29 @@ repositories {
}

dependencies {
implementation 'org.apache.httpcomponents:httpclient:4.5.13'
implementation 'org.json:json:20230227'
implementation 'org.mockito:mockito-all:1.10.19'
implementation 'io.netty:netty-all:4.1.65.Final'

testImplementation 'junit:junit:4.12'
}
api 'org.apache.httpcomponents:httpclient:4.5.13'
api 'org.json:json:20230227'
api 'io.netty:netty-all:4.1.65.Final'

task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
testImplementation 'org.junit.jupiter:junit-jupiter:5.11.4'
testImplementation 'org.mockito:mockito-junit-jupiter:5.14.2'
}

task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}

artifacts {
archives sourcesJar
archives javadocJar
}
test.useJUnitPlatform()

// To specify a license in the pom:
install {
repositories.mavenInstaller {
pom.project {
licenses {
license {
name 'The MIT License (MIT)'
url 'https://github.com/bitsoex/bitso-java/blob/master/LICENSE'
distribution 'repo'
publishing {
publications {
maven(MavenPublication) {
pom {
licenses {
license {
name = 'The MIT License (MIT)'
url = 'https://github.com/bitsoex/bitso-java/blob/master/LICENSE'
distribution = 'repo'
}
}
}
}
}
}
}
}
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
4 changes: 3 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-bin.zip
Loading

0 comments on commit 1e36db1

Please sign in to comment.