-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #79 from infinum/develop
Update stable dependencies
- Loading branch information
Showing
20 changed files
with
325 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
buildSrc/src/main/groovy/com/infinum/maven/BintrayConfiguration.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package com.infinum.maven | ||
|
||
import com.infinum.maven.shared.BaseConfiguration | ||
|
||
class BintrayConfiguration implements BaseConfiguration { | ||
|
||
private Properties properties = new Properties() | ||
|
||
@Override | ||
void load() { | ||
File file = new File("publish.properties") | ||
if (file.exists()) { | ||
properties.load(new FileInputStream(file)) | ||
} else { | ||
properties.setProperty("bintray.name", "") | ||
properties.setProperty("bintray.url", "") | ||
properties.setProperty("bintray.user", "") | ||
properties.setProperty("bintray.apikey", "") | ||
} | ||
} | ||
|
||
@Override | ||
String name() { | ||
return properties.getProperty("bintray.name").toString() | ||
} | ||
|
||
@Override | ||
String url() { | ||
return properties.getProperty("bintray.url").toString() | ||
} | ||
|
||
@Override | ||
String username() { | ||
return properties.getProperty("bintray.user").toString() | ||
} | ||
|
||
@Override | ||
String password() { | ||
return properties.getProperty("bintray.apikey").toString() | ||
} | ||
} |
41 changes: 41 additions & 0 deletions
41
buildSrc/src/main/groovy/com/infinum/maven/GithubConfiguration.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package com.infinum.maven | ||
|
||
import com.infinum.maven.shared.BaseConfiguration | ||
|
||
class GithubConfiguration implements BaseConfiguration { | ||
|
||
private Properties properties = new Properties() | ||
|
||
@Override | ||
void load() { | ||
File file = new File("publish.properties") | ||
if (file.exists()) { | ||
properties.load(new FileInputStream(file)) | ||
} else { | ||
properties.setProperty("github.name", "") | ||
properties.setProperty("github.url", "") | ||
properties.setProperty("github.user", "") | ||
properties.setProperty("github.token", "") | ||
} | ||
} | ||
|
||
@Override | ||
String name() { | ||
return properties.getProperty("github.name").toString() | ||
} | ||
|
||
@Override | ||
String url() { | ||
return properties.getProperty("github.url").toString() | ||
} | ||
|
||
@Override | ||
String username() { | ||
return properties.getProperty("github.user").toString() | ||
} | ||
|
||
@Override | ||
String password() { | ||
return properties.getProperty("github.token").toString() | ||
} | ||
} |
41 changes: 41 additions & 0 deletions
41
buildSrc/src/main/groovy/com/infinum/maven/SonatypeConfiguration.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package com.infinum.maven | ||
|
||
import com.infinum.maven.shared.BaseConfiguration | ||
|
||
class SonatypeConfiguration implements BaseConfiguration { | ||
|
||
private Properties properties = new Properties() | ||
|
||
@Override | ||
void load() { | ||
File file = new File("publish.properties") | ||
if (file.exists()) { | ||
properties.load(new FileInputStream(file)) | ||
} else { | ||
properties.setProperty("sonatype.name", "") | ||
properties.setProperty("sonatype.url", "") | ||
properties.setProperty("sonatype.user", "") | ||
properties.setProperty("sonatype.password", "") | ||
} | ||
} | ||
|
||
@Override | ||
String name() { | ||
return properties.getProperty("sonatype.name").toString() | ||
} | ||
|
||
@Override | ||
String url() { | ||
return properties.getProperty("sonatype.url").toString() | ||
} | ||
|
||
@Override | ||
String username() { | ||
return properties.getProperty("sonatype.user").toString() | ||
} | ||
|
||
@Override | ||
String password() { | ||
return properties.getProperty("sonatype.password").toString() | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
buildSrc/src/main/groovy/com/infinum/maven/shared/BaseConfiguration.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.infinum.maven.shared | ||
|
||
interface BaseConfiguration { | ||
|
||
void load() | ||
|
||
String name() | ||
|
||
String url() | ||
|
||
String username() | ||
|
||
String password() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,4 @@ cpdCheck { | |
xml.enabled = true | ||
} | ||
source = allprojects*.file("src/main/kotlin") | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,4 +48,4 @@ dependencies { | |
implementation packages.kotlin.core | ||
} | ||
|
||
apply from: "bintray.gradle" | ||
apply from: "publish.gradle" |
Oops, something went wrong.