Skip to content

Commit a32d7e4

Browse files
gaulclaude
andcommitted
Carry httpbin's notice with the files taken from it
Eight of the ten files this server sends from src/main/resources came from httpbin: the four images byte for byte, and four documents but for a trailing newline and the Jinja call in forms-post.html. slideshow.json is the /json view's data written out as JSON. httpbin is available under the ISC or MIT license, and both ask that their copyright and permission notice appear in copies. The jar on Maven Central carried the files and neither notice, so NOTICE says where each came from and quotes both licenses, and the build puts it and LICENSE in META-INF where whoever receives the jar can find them. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01M5JVWJN7L3NWmcsYvjeCfc
1 parent d3dc3cd commit a32d7e4

3 files changed

Lines changed: 92 additions & 0 deletions

File tree

NOTICE

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
java-httpbin
2+
Copyright (C) 2018-2023 Andrew Gaul
3+
Copyright (C) 2015-2016 Bounce Storage, Inc.
4+
5+
Licensed under the Apache License, Version 2.0; see LICENSE for the terms.
6+
7+
================================================================================
8+
9+
The files this server sends from src/main/resources were taken from httpbin,
10+
https://github.com/psf/httpbin, so that the endpoints serving them answer with
11+
what httpbin.org answers with:
12+
13+
src/main/resources/ httpbin/
14+
----------------------------- --------------------------------
15+
image.jpg templates/images/jackal.jpg
16+
image.png templates/images/pig_icon.png
17+
image.svg templates/images/svg_logo.svg
18+
image.webp templates/images/wolf_1.webp
19+
text.html templates/moby.html
20+
text.xml templates/sample.xml
21+
utf8.html templates/UTF-8-demo.txt
22+
forms-post.html templates/forms-post.html
23+
slideshow.json the /json view's data, from core.py
24+
25+
The four images are byte for byte what httpbin ships. The four documents drop
26+
the trailing newline, and forms-post.html names the path its form posts to
27+
where httpbin calls a Jinja function that resolves to the same one.
28+
slideshow.json holds what the /json view returns, written out as JSON.
29+
30+
httpbin is made available under the terms of *either* of the two licenses
31+
below. Contributions to httpbin are made under the terms of *both*.
32+
33+
--------------------------------------------------------------------------------
34+
35+
ISC License
36+
37+
Copyright (c) 2017 Kenneth Reitz.
38+
39+
Permission to use, copy, modify, and/or distribute this software for any
40+
purpose with or without fee is hereby granted, provided that the above
41+
copyright notice and this permission notice appear in all copies.
42+
43+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
44+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
45+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
46+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
47+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
48+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
49+
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
50+
51+
--------------------------------------------------------------------------------
52+
53+
MIT License
54+
55+
Copyright 2017 Kenneth Reitz
56+
57+
Permission is hereby granted, free of charge, to any person obtaining a copy of
58+
this software and associated documentation files (the “Software”), to deal in
59+
the Software without restriction, including without limitation the rights to
60+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
61+
of the Software, and to permit persons to whom the Software is furnished to do
62+
so, subject to the following conditions:
63+
64+
The above copyright notice and this permission notice shall be included in all
65+
copies or substantial portions of the Software.
66+
67+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
68+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
69+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
70+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
71+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
72+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
73+
SOFTWARE.

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,3 +180,7 @@ Copyright (C) 2018-2023 Andrew Gaul<br />
180180
Copyright (C) 2015-2016 Bounce Storage
181181

182182
Licensed under the Apache License, Version 2.0
183+
184+
The images and documents this server sends come from
185+
[httpbin](https://github.com/psf/httpbin) and carry its ISC or MIT license
186+
instead; see [NOTICE](NOTICE).

pom.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,21 @@
115115
</profiles>
116116

117117
<build>
118+
<resources>
119+
<resource>
120+
<directory>src/main/resources</directory>
121+
</resource>
122+
<resource>
123+
<!-- The jar carries files taken from httpbin, whose licenses ask
124+
that their notice travel with them. -->
125+
<directory>${project.basedir}</directory>
126+
<targetPath>META-INF</targetPath>
127+
<includes>
128+
<include>LICENSE</include>
129+
<include>NOTICE</include>
130+
</includes>
131+
</resource>
132+
</resources>
118133
<extensions>
119134
<extension>
120135
<groupId>eu.maveniverse.maven.njord</groupId>

0 commit comments

Comments
 (0)