Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (769)
Games in Android Showcase (230)
games submitted by our members
Games in WIP (855)
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 4095 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: 185



« 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:
1  
2  
3  
4  
5  
6  
7  
8  
9  
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  
 
 

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

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

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

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

nelsongames (1171 views)
2018-04-24 18:15:36

nelsongames (1548 views)
2018-04-24 18:14:32

ivj94 (2305 views)
2018-03-24 14:47:39

ivj94 (1514 views)
2018-03-24 14:46:31

ivj94 (2601 views)
2018-03-24 14:43:53

Solater (878 views)
2018-03-17 05:04:08
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

Deployment and Packaging
by gouessej
2018-08-22 08:03:45

Deployment and Packaging
by philfrei
2018-08-20 02:33:38

Deployment and Packaging
by philfrei
2018-08-20 02:29:55

Deployment and Packaging
by philfrei
2018-08-19 23:56:20

Deployment and Packaging
by philfrei
2018-08-19 23:54:46
java-gaming.org 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‑gaming.org
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!