Skip to content

Commit 14c3900

Browse files
committed
Merge pull request #219 from ThomasJClark/exclude-stuff
Exclude unused stuff from the jar
2 parents 6daed5f + 7af3f7e commit 14c3900

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

build.gradle

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,23 @@ project(":core") {
100100
builtBy shadowJar
101101
}
102102
}
103+
104+
/* The icudt54b directory in Jython takes up 9 megabytes and doesn't seem to do anything useful. */
105+
exclude 'org/python/icu/impl/data/icudt54b/'
106+
107+
/* We don't use all of the OpenCV libraries, and they seem to take up a lot of space. If we ever decide to
108+
use any more of these (or perhaps just include them for people to use from Python scripts), the following lines
109+
should be changed, but for now this saves us a lot of space. */
110+
exclude 'org/bytedeco/javacpp/*/*calib3d*'
111+
exclude 'org/bytedeco/javacpp/*/*face*'
112+
exclude 'org/bytedeco/javacpp/*/*objdetect*'
113+
exclude 'org/bytedeco/javacpp/*/*optflow*'
114+
exclude 'org/bytedeco/javacpp/*/*photo*'
115+
exclude 'org/bytedeco/javacpp/*/*shape*'
116+
exclude 'org/bytedeco/javacpp/*/*stitching*'
117+
exclude 'org/bytedeco/javacpp/*/*superres*'
118+
exclude 'org/bytedeco/javacpp/*/*videostab*'
119+
exclude 'org/bytedeco/javacpp/*/*xfeatures2d*'
103120
}
104121

105122
sourceSets {

0 commit comments

Comments
 (0)