Skip to content

Commit

Permalink
Use jitpack dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Recognized committed Dec 15, 2018
1 parent 2c78ca5 commit 163abf4
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 13 deletions.
23 changes: 14 additions & 9 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
buildscript {
ext.kotlin_version = "1.3.0"
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}

plugins {
id 'org.jetbrains.github.jvm' version '1.3.0'
id "org.jetbrains.kotlin.jvm" version "1.3.0"
}

group 'vladsaif.recognized.union'
group 'com.github.recognized'
version '1.0'

repositories {
mavenCentral()
flatDir {
dirs 'libs'
}
jcenter()
maven { url "https://jitpack.io" }
}

task sourcesJar(type: Jar, dependsOn: classes) {
Expand All @@ -25,9 +30,9 @@ task sourcesJar(type: Jar, dependsOn: classes) {
assemble.dependsOn(sourcesJar)

dependencies {
implementation "org.jetbrains.github:github-stdlib-jdk8"
implementation files("libs/github-recognized-extensions-1.0-withSources.jar")
testImplementation "org.jetbrains.github:github-test-junit:$kotlin_version"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.0"
implementation "com.github.Recognized:kotlin-ranges-extensions:v1.01"
testImplementation "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version"
}

compileKotlin {
Expand Down
3 changes: 2 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#Sat Dec 15 20:12:26 MSK 2018
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10-all.zip
Binary file removed libs/kotlin-ranges-extensions-1.0-withSources.jar
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.github.recognized.kotlin.ranges.union

import vladsaif.kotlin.ranges.extensions.*
import com.github.recognized.kotlin.ranges.extensions.*
import kotlin.math.max
import kotlin.math.min

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.github.recognized.kotlin.ranges.union

import com.github.recognized.kotlin.ranges.extensions.from
import org.junit.Assert.assertEquals
import org.junit.Assert.assertTrue
import org.junit.Test
import vladsaif.kotlin.ranges.extensions.from
import java.util.*

class IntRangeUnionTest {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.github.recognized.kotlin.ranges.union

import com.github.recognized.kotlin.ranges.extensions.from
import org.junit.Test
import vladsaif.kotlin.ranges.extensions.from
import java.util.*
import kotlin.test.assertEquals
import kotlin.test.assertTrue
Expand Down

0 comments on commit 163abf4

Please sign in to comment.