https://kotlinlang.org logo
Title
b

barteks2x

01/17/2019, 5:01 AM
(also this is my buildscript with the uploadArchives task commented out https://paste.pound-python.org/show/9Cbepp8dn0pHrlvjmBL9/)
n

Nikky

01/17/2019, 5:09 AM
i assume updating to FG 3 is not possible ?
i would recommend to use the maven-publish plugin.. it is newer and works better with FG .. in my experiennce
i had to wire it up to shadowJar myself but even that worked reasonably easily
one more suggestion.. avoid
val theForgeVersion: String by project
instead put them into
buildSrc/src/main/kotlin/Versions.kt
and they can be accessed anywhere in the project with full syntax completion do not forget to add this to `buildSrc/build.gradle.kt`:
plugins { `kotlin-dsl` }
b

barteks2x

01/17/2019, 5:13 AM
FG3 only works with Forge for MC 1.13 which is NOT an option here
n

Nikky

01/17/2019, 5:14 AM
i heard it is flexible as a toolchain so old version will be able to be used with it
b

barteks2x

01/17/2019, 5:14 AM
Eventually maybe, but currently it's not possible
at least, noone has done it. It's not possible even if just for one trivial fact: current FG2 setup depends on even specific version of the decompiler
n

Nikky

01/17/2019, 5:15 AM
i see.. anyways maven-publish anyways and it would be nicer to read and organize managing versions via buildSrc those constants are even avalable in the plugins block..
b

barteks2x

01/17/2019, 5:16 AM
I honestly don't want to split my buildscript into multiple files if possible. I want to keep it mostly self-contained
n

Nikky

01/17/2019, 5:16 AM
and try running
tasks
to see if it is really not there ?
b

barteks2x

01/17/2019, 5:16 AM
and maven-publish does NOT work with deobfCompile dependencies as of 4.10
Upload tasks
------------
uploadArchives - Uploads all artifacts belonging to configuration ':archives'
it appears to be there
n

Nikky

01/17/2019, 5:17 AM
i am running my mods on gradle 3.x something because i compile to 1.7.10 and newer at the same time..
whats its type ?
there is a task to get that too.. possibly its no longer a UploadTask ?
b

barteks2x

01/17/2019, 5:18 AM
that I will probably have to test by modifying buildscript
well, I don't know that task name
n

Nikky

01/17/2019, 5:21 AM
try
gradlew help --task <task>
b

barteks2x

01/17/2019, 5:23 AM
it's
org.gradle.api.tasks.Upload
n

Nikky

01/17/2019, 5:24 AM
try it in
afterEvaluate { }
?
possibly the task does not exist yet.. unlikely but.. who knows
also the order of plugins might matter..
b

barteks2x

01/17/2019, 5:25 AM
it worked correctly in gradle 4.10-20180707235920
it appears to work in afterEvaluate
We will see if actually uploading the archives works too when I push my changes in a few hours