1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 00:17:11 -07:00
Commit graph

1059 commits

Author SHA1 Message Date
Cedric Beust
f276eb3001 Merge pull request #400 from rhencke/reduceJarAssemblyTime
Reduce time spent in JAR/ZIP assembly.
2017-04-08 11:12:01 -07:00
Cedric Beust
c9e61e49a9 Any nonexistent version will cause Kobalt to use local build directories.
Relaxes the restriction for that version to be +1.
2017-04-08 11:08:17 -07:00
Robert Hencke
713faa7a3f Reduce time spent in JAR/ZIP assembly.
Locally, this reduces a run of kobaltw assemble --noIncremental
on the Kobalt codebase itself from 47 seconds to 25 seconds.

When JarInputStream.nextEntry is invoked, the stream sets its position
and length so that it can directly be used to read the underlying content
associated with the entry.  This avoids the need to call
JarFile(localFile).getInputStream(entry) and the cost associated with it.

addEntry has a slight change of semantics due to this change - it is now
the caller's responsibility to close the associated input stream.  The two
existing calls to the method were adjusted accordingly.
2017-04-08 13:11:41 -04:00
Cedric Beust
f7cb803edc Typo. 2017-04-08 09:29:27 -07:00
Cedric Beust
5fac88b1f7 GH-391: "provided" dependencies are no longer used to compile.
Fixes https://github.com/cbeust/kobalt/issues/391
2017-04-07 19:39:21 -07:00
5f8021334a Beginning implementation of compileOnly. 2017-04-07 19:37:48 -07:00
Cedric Beust
9db54e24e4 No longer used. 2017-04-07 19:12:51 -07:00
Cedric Beust
cb7a8a5fb8 GH-393: run now runs from the project's directory.
Fixes https://github.com/cbeust/kobalt/issues/393
2017-04-07 19:06:48 -07:00
Cedric Beust
a50d349fd6 Merge branch 'master' of github.com:cbeust/kobalt 2017-04-07 15:26:53 -07:00
Cedric Beust
40ab79456b Name for the filter. 2017-04-07 15:16:53 -07:00
Cedric Beust
9c73bc717a Not used. 2017-04-07 15:15:42 -07:00
Cedric Beust
e19b3472a7 GH-392: Make collect() return both File and id.
Fixes https://github.com/cbeust/kobalt/issues/392
2017-04-07 12:29:10 -07:00
Cedric Beust
d2ee2f7b4c Typo. 2017-04-07 11:42:33 -07:00
Cedric Beust
33dafe6cd0 Initial support for JUnit 5. 2017-04-07 11:42:29 -07:00
Cedric Beust
5768fb24db Dependencies can be empty. 2017-04-07 11:41:43 -07:00
Cedric Beust
9049ed8048 GH-336: Typo.
Fixes https://github.com/cbeust/kobalt/issues/336
2017-04-06 14:12:14 -07:00
Cedric Beust
49fd5db117 GH-383: provided() dependencies should not be included in the far jat.
Fixes https://github.com/cbeust/kobalt/issues/383
2017-04-06 13:36:36 -07:00
Cedric Beust
b0e823958b InstallTest and BuildFilesTest. 2017-04-06 12:51:54 -07:00
Cedric Beust
ba98592f49 Tests can now run full builds. 2017-04-06 11:31:05 -07:00
Cedric Beust
38d2187eae Fix copy().
Fixes https://github.com/cbeust/kobalt/issues/387
2017-04-06 09:39:21 -07:00
Cedric Beust
edb9370988 copy() now takes a From as first parameter. 2017-04-05 16:08:01 -07:00
Cedric Beust
59d6120412 collect() returns a list of File. 2017-04-05 14:48:43 -07:00
Cedric Beust
9514d80b99 Introducing the copy() directive for installation.
Example use:

    install {
        collect(compileDependencies).map {
            copy(it, to("deploy"))
        }
    }
2017-04-05 14:11:30 -07:00
Cedric Beust
c691709a53 Reformat. 2017-04-04 10:50:20 -07:00
Cedric Beust
abab841119 Logs. 2017-04-04 10:50:10 -07:00
Cedric Beust
886b7a4bfa include() for install{}. 2017-04-04 10:49:48 -07:00
Cedric Beust
789c969a9b GITHUB-382: Expose Project.collect() to gather dependencies in the build file.
Fixes https://github.com/cbeust/kobalt/issues/382
2017-04-03 11:02:45 -07:00
Cedric Beust
bb2eb19876 Refactor some downloadSources code. 2017-04-03 09:54:26 -07:00
Cedric Beust
1c27b9f1e4 Merge pull request #374 from dmitry-zhuravlev/master
* download sources property propagation. relates to #372
2017-04-03 09:47:44 -07:00
Cedric Beust
f8fbcb912c Remove the random repo number hack.
Fixes https://github.com/cbeust/kobalt/issues/385
2017-04-03 09:44:48 -07:00
Dmitry Zhuravlev
c54d4c5b2b * fix sources and javadoc resolution. relates to #372 2017-04-03 12:50:02 +03:00
Dmitry Zhuravlev
23bbcd4d84 * merge 2017-04-03 12:13:49 +03:00
Cedric Beust
b011abc13b Resolve snapshot repos correctly.
Fixes https://github.com/cbeust/kobalt/issues/377.
2017-04-01 13:42:09 -07:00
Cedric Beust
53924366ba Forgot a change. 2017-04-01 06:30:03 -07:00
Cedric Beust
b3ce6db1da Use injection for isDev. 2017-04-01 06:22:17 -07:00
1610677a94 Disable release version check if --dev 2017-03-31 23:24:16 -07:00
af9289ad7f Latest version check now defaults to current version. 2017-03-31 18:27:40 -07:00
c342573e55 Only check for the latest release version number on GitHub every 10 minutes. 2017-03-31 17:11:20 -07:00
Cedric Beust
a6836fbd79 Surface the new build directories to expose them to the IDEA plug-in. 2017-03-31 10:56:30 -07:00
Cedric Beust
bfa2fb072e Fix: the sources don’t get downloaded if the jar file is present. 2017-03-31 09:19:37 -07:00
Dmitry Zhuravlev
b9a3a4f40b * fix sources and javadoc resolution. relates to #372 2017-03-31 18:31:20 +03:00
Cedric Beust
f29c974c49 Run the correct jar name, even if its name was changed.
Fixes https://github.com/cbeust/kobalt/issues/355
2017-03-30 14:03:37 -07:00
Cedric Beust
1730e8de69 Add -downloadSources. 2017-03-30 13:29:25 -07:00
Cedric Beust
a7553279cf Fix the topLines bug. 2017-03-30 13:16:17 -07:00
Cedric Beust
da85ec31f1 Rename. 2017-03-30 13:00:25 -07:00
Cedric Beust
b354b42767 Better error message. 2017-03-30 11:58:27 -07:00
Cedric Beust
dee55652f9 Comment. 2017-03-30 11:49:40 -07:00
Cedric Beust
0aae394975 Fix build path. 2017-03-30 11:49:26 -07:00
Cedric Beust
b3efc12569 autoUpdate setting. 2017-03-30 10:13:41 -07:00
Cedric Beust
6a61b21482 Create the directory. 2017-03-30 10:02:42 -07:00