Skip to content

Commit c302125

Browse files
committed
Modification for publishing to bintray and passing to 1.1.6
1 parent 44699d7 commit c302125

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

README.MD

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,7 @@
1313
In your block `repositories`, add this lines :
1414
```groovy
1515
repositories {
16-
maven {
17-
url = "https://flowarg.github.io/maven/"
18-
name = "FlowArg's Maven repository"
19-
}
16+
jcenter()
2017
}
2118
```
2219

@@ -46,7 +43,7 @@ IVanillaVersion version = versionBuilder.build(false, VersionType.VANILLA);
4643
```
4744
If you have specified "latest" to the version name, and that the version is a snapshot, replace false by true.
4845

49-
Then, instantiate a new FlowUpdater with ``FlowUpdaterBuilder#addArguments#build``. Check the code for more informations.
46+
Then, instantiate a new FlowUpdater with ``FlowUpdaterBuilder#withXArguments#build``. Check the code for more informations.
5047
```java
5148
FlowUpdater updater = new FlowUpdaterBuilder().withVersion(version).build();
5249
```
@@ -73,7 +70,7 @@ You can get a list of mods by providing a json link : `List<Mod> mods = Mod.getM
7370

7471
Finally, set the Forge version corresponding to the wanted Forge version :
7572
```java
76-
updater.setForgeVersion(new NewForgeVersion("31.2.30", version, updater.getLogger(), updater.getCallback(), mods)); // NewForgeVersion -> 1.12.2-14.23.5.2854 1.16.1 ; OldForgeVersion -> 1.7 1.12
73+
updater.setForgeVersion(new NewForgeVersion("31.2.30", version, updater.getLogger(), updater.getCallback(), mods)); // NewForgeVersion -> 1.12.2-14.23.5.2851 1.16.1 ; OldForgeVersion -> 1.7 1.12
7774
```
7875
That's all!
7976

build.gradle

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,20 @@ artifacts {
2525
}
2626

2727
bintray {
28-
user = System.getenv('BINTRAY_USER')
28+
user = System.getenv('BINTRAY_USERNAME')
2929
key = System.getenv('BINTRAY_KEY')
30+
publications = ['mavenJava']
3031
pkg {
3132
repo = 'maven'
32-
name = 'maven'
33-
licenses = ['GPL-3.0', 'Apache-2.0']
33+
name = 'FlowUpdater'
34+
userOrg = 'flowarg'
35+
licenses = ['GPL-3.0']
36+
publicDownloadNumbers = true
3437
vcsUrl = 'https://github.com/FlowArg/FlowUpdater.git'
3538
version {
36-
name = '1.0-Final'
39+
name = 'v' + project.version
3740
desc = 'ILogger & JCenter update'
38-
released = new Date()
41+
released = new Date()
3942
vcsTag = 'v' + project.version
4043
}
4144
}
@@ -53,7 +56,6 @@ publishing {
5356
name = project.name
5457
description = 'FlowUpdater is a library for automatically update minecraft versions !'
5558
url = 'https://github.com/FlowArg/FlowUpdater'
56-
packaging = 'jar'
5759

5860
issueManagement {
5961
system = 'github'

0 commit comments

Comments
 (0)