Skip to content

Commit

Permalink
update(sample): change to import jitpack
Browse files Browse the repository at this point in the history
  • Loading branch information
Koooooo-7 committed Jul 6, 2024
1 parent 21f2a09 commit 012e0e5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions sample-project/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ version '1.0-SNAPSHOT'
description 'Sample project for echarts4j.'

repositories {
mavenLocal()
// mavenLocal()
mavenCentral()
maven { url 'https://jitpack.io' }
}

compileKotlin {
Expand All @@ -37,14 +38,13 @@ compileTestKotlin {
ext {
lang3Version = "3.14.0"
lombokVersion = "1.18.32"
echarts4jVersion = "1.0.0-SNAPSHOT"
echarts4jVersion = "main-SNAPSHOT"
jacksonVersion = "2.17.1"
}

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
implementation "com.github.koooooo7.echarts4j:echarts4j-project:$echarts4jVersion"
implementation "com.fasterxml.jackson.core:jackson-databind:$jacksonVersion"
implementation "com.github.Koooooo-7.echarts4j:echarts4j-project:$echarts4jVersion"
implementation "org.apache.commons:commons-lang3:$lang3Version"

compileOnly "org.projectlombok:lombok:$lombokVersion"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import com.github.koooooo7.echarts4j.option.ChartOption
import com.github.koooooo7.echarts4j.option.chart.Title
import com.github.koooooo7.echarts4j.option.chart.Toolbox
import com.github.koooooo7.echarts4j.option.chart.Toolbox.SaveAsImage
import com.github.koooooo7.echarts4j.option.series.LineChartSeriesOption
import com.github.koooooo7.echarts4j.option.series.LineChartSeries
import java.io.File


Expand All @@ -30,7 +30,7 @@ private fun basicLineCharts() {
.build()
).build()
).build().addSeries(
LineChartSeriesOption.builder()
LineChartSeries.builder()
.data(listOf(1, 2, 3, 4, 5, 6))
.build()
)
Expand Down

0 comments on commit 012e0e5

Please sign in to comment.