Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (806)
Games in Android Showcase (239)
games submitted by our members
Games in WIP (868)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: 1 2 [3]
  ignore  |  Print  
  Maven: Why bother, and How  (Read 13812 times)
0 Members and 1 Guest are viewing this topic.
Offline CommanderKeith
« Reply #60 - Posted 2018-09-01 09:42:39 »

...there was no easy way to download the jar file and put it in as a library. They suggested gradle, and so after a lot of playing around, I migrated everything.

Yes I also find it strange how many projects don't provide jars for download. They go to all the trouble of making a github page, configuring maven and git and whatnot, yet forget to post the project jar file for low fuss simpletons like me to download and use.

Offline cygnus
« Reply #61 - Posted 2018-09-01 15:59:22 »

The only thing I didn't like was moving everything to src/main/kotlin.
You don't have to do that. You can just specify the location of your sources via sourceSets.main.kotlin.srcDirs = [“some-path“]

I'm pretty sure I tried that and it didn't work. Don't quite remember.
Offline cylab

JGO Kernel

Medals: 195

« Reply #62 - Posted 2018-09-02 08:03:51 »

The only thing I didn't like was moving everything to src/main/kotlin.
You don't have to do that. You can just specify the location of your sources via sourceSets.main.kotlin.srcDirs = [“some-path“]

I'm pretty sure I tried that and it didn't work. Don't quite remember.

Hmm, I just looked it up in a project of mine and it apparently has to be java.srcDirs:
apply plugin: "kotlin"

sourceSets.main {
    java.srcDirs = [ "src/" ]
    resources.srcDirs = [ "resources/" ]
sourceSets.test {
    java.srcDirs = ["test/"]


Mathias - I Know What [you] Did Last Summer!
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline delt0r

JGO Wizard

Medals: 145
Exp: 18 years

Computers can do that?

« Reply #63 - Posted 2018-09-06 01:58:22 »

The length of the thread should tell you all you need to know. Basically managing dependencies is back to the old DLL hell days of old. We fix it with more config files more tools more apt-get madness and completely ignore the elephant in the room. Dependency hell! Yea somethings are dynamically linked DLL hell (.so hell in Linux) and when it comes to compiling is library hell. Same thing.

I dislike ALL of these tools. I HATE them. I Hate XML as much as The Gary Hates KVN! But often i am forced to use them. I do like to build projects from a git* pull ./simpleCommandAndBuildTheBloodyThingOrTellMeWhatsWrong or  a tar -xvzf, cd awesomeProject, ./makeme. Not install an entire ecosystem of build tools! Nor do i want it to go and download 30 other projects! (atom im looking at you!)

But we are creating (or attempting) games correct? We are not going to expect our players to install library and stuff are we? So i make the version i want part of the "binary" and with source i just include the library. I don't update versions without testing. I hate autoupdate, which is really auto break everything. In C/C++ i statically link as much of everything i can. It creates a large binary, big woop its still like 8Megs. 1995 called and asked for its "fit on a floppy" requirement back.

I have just started with js and html 5.. Oh god what a clusterFudge!

I am going to have to give a serious look at SCAR. Interesting.

* Sorry princec, i stopped using svn when it totally corrupted my repo for the second time for no apparent reason. git is fine if you leave out 90% of the features that are meant for the kernel source tree.

I have no special talents. I am only passionately curious.--Albert Einstein
Offline albitecluck

Innocent Bystander

« Reply #64 - Posted 2018-10-08 22:41:44 »

Gradle wins for me over Maven because I hate XML format. Gradle uses Groovy or Kotlin, so I can use real code to build real code.

geometry dash | run 3 full game.
Offline Damocles
« Reply #65 - Posted 2018-10-09 12:49:57 »

I use the RUN button ...
Pages: 1 2 [3]
  ignore  |  Print  

Riven (587 views)
2019-09-04 15:33:17

hadezbladez (5533 views)
2018-11-16 13:46:03

hadezbladez (2411 views)
2018-11-16 13:41:33

hadezbladez (5794 views)
2018-11-16 13:35:35

hadezbladez (1233 views)
2018-11-16 13:32:03

EgonOlsen (4669 views)
2018-06-10 19:43:48

EgonOlsen (5688 views)
2018-06-10 19:43:44

EgonOlsen (3205 views)
2018-06-10 19:43:20

DesertCoockie (4104 views)
2018-05-13 18:23:11

nelsongames (5125 views)
2018-04-24 18:15:36
A NON-ideal modular configuration for Eclipse with JavaFX
by philfrei
2019-12-19 19:35:12

Java Gaming Resources
by philfrei
2019-05-14 16:15:13

Deployment and Packaging
by philfrei
2019-05-08 15:15:36

Deployment and Packaging
by philfrei
2019-05-08 15:13:34

Deployment and Packaging
by philfrei
2019-02-17 20:25:53

Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!