Skip to content

Commit 1c0b3cd

Browse files
committed
Include sources and javadocs with shaded jar
1 parent c965b4d commit 1c0b3cd

File tree

3 files changed

+67
-41
lines changed

3 files changed

+67
-41
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ target
77
.DS_Store
88
*.iml
99
.mvn/wrapper/maven-wrapper.jar
10+
oshi-core-shaded/dependency-reduced-pom.xml

oshi-core-shaded/pom.xml

+44-41
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
https://github.com/oshi/oshi/graphs/contributors
2020
2121
-->
22-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
22+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2324
<modelVersion>4.0.0</modelVersion>
2425

2526
<parent>
@@ -40,45 +41,47 @@
4041
<tag>HEAD</tag>
4142
</scm>
4243

43-
<dependencies>
44-
<dependency>
45-
<groupId>org.slf4j</groupId>
46-
<artifactId>slf4j-jdk14</artifactId>
47-
<version>1.7.25</version>
48-
<scope>runtime</scope>
49-
<optional>true</optional>
50-
</dependency>
51-
<dependency>
52-
<groupId>${project.groupId}</groupId>
53-
<artifactId>oshi-core</artifactId>
54-
<version>${project.version}</version>
55-
</dependency>
56-
</dependencies>
44+
<dependencies>
45+
<dependency>
46+
<groupId>org.slf4j</groupId>
47+
<artifactId>slf4j-jdk14</artifactId>
48+
<version>1.7.25</version>
49+
<scope>runtime</scope>
50+
<optional>true</optional>
51+
</dependency>
52+
<dependency>
53+
<groupId>${project.groupId}</groupId>
54+
<artifactId>oshi-core</artifactId>
55+
<version>${project.version}</version>
56+
</dependency>
57+
</dependencies>
5758

58-
<build>
59-
<plugins>
60-
<plugin>
61-
<groupId>org.apache.maven.plugins</groupId>
62-
<artifactId>maven-shade-plugin</artifactId>
63-
<version>3.1.0</version>
64-
<executions>
65-
<execution>
66-
<phase>package</phase>
67-
<goals>
68-
<goal>shade</goal>
69-
</goals>
70-
<configuration>
71-
<artifactSet>
72-
<includes>
73-
<include>org.slf4j:slf4j-api:</include>
74-
<include>org.slf4j:slf4j-jdk14:</include>
75-
<include>org.threeten:threetenbp:</include>
76-
</includes>
77-
</artifactSet>
78-
</configuration>
79-
</execution>
80-
</executions>
81-
</plugin>
82-
</plugins>
83-
</build>
59+
<build>
60+
<plugins>
61+
<plugin>
62+
<groupId>org.apache.maven.plugins</groupId>
63+
<artifactId>maven-shade-plugin</artifactId>
64+
<version>3.1.0</version>
65+
<executions>
66+
<execution>
67+
<phase>package</phase>
68+
<goals>
69+
<goal>shade</goal>
70+
</goals>
71+
<configuration>
72+
<artifactSet>
73+
<includes>
74+
<include>org.slf4j:slf4j-api:</include>
75+
<include>org.slf4j:slf4j-jdk14:</include>
76+
<include>org.threeten:threetenbp:</include>
77+
</includes>
78+
</artifactSet>
79+
<createDependencyReducedPom>true</createDependencyReducedPom>
80+
<createSourcesJar>true</createSourcesJar>
81+
</configuration>
82+
</execution>
83+
</executions>
84+
</plugin>
85+
</plugins>
86+
</build>
8487
</project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/**
2+
* Oshi (https://github.com/oshi/oshi)
3+
*
4+
* Copyright (c) 2010 - 2017 The Oshi Project Team
5+
*
6+
* All rights reserved. This program and the accompanying materials
7+
* are made available under the terms of the Eclipse Public License v1.0
8+
* which accompanies this distribution, and is available at
9+
* http://www.eclipse.org/legal/epl-v10.html
10+
*
11+
* Maintainers:
12+
* dblock[at]dblock[dot]org
13+
* widdis[at]gmail[dot]com
14+
* enrico.bianchi[at]gmail[dot]com
15+
*
16+
* Contributors:
17+
* https://github.com/oshi/oshi/graphs/contributors
18+
*/
19+
/**
20+
* [oshi-core-shaded] See the oshi-core javadoc for documentation.
21+
*/
22+
package oshi;

0 commit comments

Comments
 (0)