Skip to content

Update dependencies and add more functions #45

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 17 commits into
base: master
Choose a base branch
from
Draft
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
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,7 @@ hs_err_pid*

# idea
.idea

# Gradle
.gradle/
build/
52 changes: 31 additions & 21 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,27 +1,37 @@
apply plugin: 'java'
apply plugin: "maven-publish"
apply plugin: "maven"
apply plugin: "signing"
apply plugin: 'maven-publish'
apply plugin: 'signing'

group 'com.github.sh0nk'
version '0.5.1-SNAPSHOT'
archivesBaseName = "matplotlib4j"
description = "Matplotlib for java: A simple graph plot library for java with powerful python matplotlib"
description = 'Matplotlib for Java: A simple graph plot library for Java using matplotlib for Python'

sourceCompatibility = 1.8
base {
archivesName = 'matplotlib4j'
}

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

tasks.register('sourceJar', Jar) {
from sourceSets.main.allSource
}

tasks.withType(JavaCompile) {
options.deprecation = true
options.compilerArgs << '-Xlint:unchecked'
}

task sourceJar(type: Jar) {
from sourceSets.main.allJava
java {
withJavadocJar()
withSourcesJar()
}

publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourceJar {
classifier "sources"
}
}
publishing.publications {
mavenJava(MavenPublication) {
from components.java
}
}

Expand All @@ -30,10 +40,10 @@ repositories {
}

dependencies {
compile group: 'com.google.guava', name: 'guava', version: '15.0'
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.7'
compile group: 'org.slf4j', name: 'slf4j-log4j12', version: '1.7.7'
compile group: 'log4j', name: 'log4j', version: '1.2.17'
implementation group: 'com.google.guava', name: 'guava', version: '32.1.2-jre'
implementation group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.20.0'
implementation group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.20.0'
implementation group: 'org.apache.logging.log4j', name: 'log4j-slf4j2-impl', version: '2.20.0'

testCompile group: 'junit', name: 'junit', version: '4.12'
testImplementation group: 'junit', name: 'junit', version: '4.13.2'
}
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
7 changes: 4 additions & 3 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#Wed Oct 23 10:40:47 UTC 2019
distributionUrl=https\://services.gradle.org/distributions/gradle-4.8.1-all.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading