-
- Downloads
Licenses file (#16554)
* wip for licenses * Lots of changes - bump clojure.data.xml to prevent illegal access - had to change navigators because of this - switch to full text of license - algo is now: 1. check for a license file in jar 2. check for an override pointing to a license file locally in resources 3. Check pom file for license information and just use that can be invoked as: ```bash % clj -X mb.licenses/process :classpath \"$(cd ../.. && lein classpath)\" :backfill "\"overrides.edn\"" :output-filename "\"backend-licenses.txt\"" License information written to backend-licenses.txt /Users/dan/.m2/repository/net/jcip/jcip-annotations/1.0/jcip-annotations-1.0.jar : No license information found. org.clojars.brenton:google-diff-match-patch : No license information found. % wc backend-licenses.txt 33638 299118 2092948 backend-licenses.txt ``` * xml/parse without the strings * Add tests * remove comment form * namespace comments * readme * instructions to create backend license files * Add version information to the build script need to either yank it out of the separate project or just use it as a local root. not sure which todos: move to s3 once i get access and figure out the proper bucket copy to a place so it ends up in the jar generate frontend versions as well * Build frontend and backend license files put them in the jar at META-INF/leiningen/metabase-core/metabase-core/license-frontend-third-party META-INF/leiningen/metabase-core/metabase-core/license-backend-third-party need to be named ^license.* for lein uberjar to pick them up * Rename and reformat * remove old stuff * combine with a newline * Tests ensure all jars have an identifiable license * Extra information if backfill is malformed or missing * correct name for apache2_0 backfill * print out classpaths in CI * print * see whole classpath. it's empty on ee for some reason * assert they are there * Get deps before attempting classpath for some reason the first one fails. but subsequent re-runs work. * loop on deps until satisfied * Include message if cannot satisfy * include all drivers when getting deps * rearrange ns docstring * Hoist functions on pom inside of `with-open` on the input streams * Update to inversion of pom parsing * Move to nio from java.io
Showing
- bin/build-mb/deps.edn 6 additions, 2 deletionsbin/build-mb/deps.edn
- bin/build-mb/resources/BSD.txt 9 additions, 0 deletionsbin/build-mb/resources/BSD.txt
- bin/build-mb/resources/CC_2_5.txt 68 additions, 0 deletionsbin/build-mb/resources/CC_2_5.txt
- bin/build-mb/resources/EDL.txt 7 additions, 0 deletionsbin/build-mb/resources/EDL.txt
- bin/build-mb/resources/EPL.txt 88 additions, 0 deletionsbin/build-mb/resources/EPL.txt
- bin/build-mb/resources/GPL1_1.txt 248 additions, 0 deletionsbin/build-mb/resources/GPL1_1.txt
- bin/build-mb/resources/GPL2_0.txt 175 additions, 0 deletionsbin/build-mb/resources/GPL2_0.txt
- bin/build-mb/resources/MIT.txt 5 additions, 0 deletionsbin/build-mb/resources/MIT.txt
- bin/build-mb/resources/apache2_0.txt 202 additions, 0 deletionsbin/build-mb/resources/apache2_0.txt
- bin/build-mb/resources/overrides.edn 48 additions, 0 deletionsbin/build-mb/resources/overrides.edn
- bin/build-mb/src/build.clj 38 additions, 0 deletionsbin/build-mb/src/build.clj
- bin/build-mb/src/build/licenses.clj 233 additions, 0 deletionsbin/build-mb/src/build/licenses.clj
- bin/build-mb/test/build/licenses_test.clj 230 additions, 0 deletionsbin/build-mb/test/build/licenses_test.clj
- bin/common/src/metabuild_common/core.clj 2 additions, 1 deletionbin/common/src/metabuild_common/core.clj
- bin/common/src/metabuild_common/files.clj 9 additions, 0 deletionsbin/common/src/metabuild_common/files.clj
bin/build-mb/resources/BSD.txt
0 → 100644
bin/build-mb/resources/CC_2_5.txt
0 → 100644
bin/build-mb/resources/EDL.txt
0 → 100644
bin/build-mb/resources/EPL.txt
0 → 100644
bin/build-mb/resources/GPL1_1.txt
0 → 100644
bin/build-mb/resources/GPL2_0.txt
0 → 100644
This diff is collapsed.
bin/build-mb/resources/MIT.txt
0 → 100644
bin/build-mb/resources/apache2_0.txt
0 → 100644
bin/build-mb/resources/overrides.edn
0 → 100644
bin/build-mb/src/build/licenses.clj
0 → 100644
bin/build-mb/test/build/licenses_test.clj
0 → 100644
Please register or sign in to comment