(also this is my buildscript with the uploadArchiv...
# gradle
b
(also this is my buildscript with the uploadArchives task commented out https://paste.pound-python.org/show/9Cbepp8dn0pHrlvjmBL9/)
n
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`:
Copy code
plugins { `kotlin-dsl` }
b
FG3 only works with Forge for MC 1.13 which is NOT an option here
n
i heard it is flexible as a toolchain so old version will be able to be used with it
b
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
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
I honestly don't want to split my buildscript into multiple files if possible. I want to keep it mostly self-contained
n
and try running
tasks
to see if it is really not there ?
b
and maven-publish does NOT work with deobfCompile dependencies as of 4.10
Copy code
Upload tasks
------------
uploadArchives - Uploads all artifacts belonging to configuration ':archives'
it appears to be there
n
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
that I will probably have to test by modifying buildscript
well, I don't know that task name
n
try
gradlew help --task <task>
b
it's
org.gradle.api.tasks.Upload
n
try it in
afterEvaluate { }
?
possibly the task does not exist yet.. unlikely but.. who knows
also the order of plugins might matter..
b
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