Skip to content

Commit c3d55f1

Browse files
author
m.r
committed
init 0.1
0 parents  commit c3d55f1

File tree

82 files changed

+7121
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+7121
-0
lines changed

.github/workflows/build.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Manually package
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
branch:
6+
description: 'Test Branch'
7+
required: true
8+
default: 'main'
9+
steps:
10+
- uses: actions/checkout@v4
11+
with:
12+
ref: ${{github.event.inputs.branch}}
13+
- uses: actions/setup-java@v4
14+
with:
15+
java-version: '17'
16+
distribution: 'temurin'
17+
18+
- name: Setup Gradle
19+
uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0
20+
21+
- name: Build with Gradle
22+
run: ./gradlew build
23+
24+
- name: Upload build artifacts
25+
uses: actions/upload-artifact@v4
26+
with:
27+
name: Package
28+
path: build/libs

.gitignore

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
.gradle
2+
build/
3+
!gradle/wrapper/gradle-wrapper.jar
4+
!**/src/main/**/build/
5+
!**/src/test/**/build/
6+
7+
### IntelliJ IDEA ###
8+
.idea/modules.xml
9+
.idea/jarRepositories.xml
10+
.idea/compiler.xml
11+
.idea/libraries/
12+
*.iws
13+
*.iml
14+
*.ipr
15+
out/
16+
!**/src/main/**/out/
17+
!**/src/test/**/out/
18+
19+
### Eclipse ###
20+
.apt_generated
21+
.classpath
22+
.factorypath
23+
.project
24+
.settings
25+
.springBeans
26+
.sts4-cache
27+
bin/
28+
!**/src/main/**/bin/
29+
!**/src/test/**/bin/
30+
31+
### NetBeans ###
32+
/nbproject/private/
33+
/nbbuild/
34+
/dist/
35+
/nbdist/
36+
/.nb-gradle/
37+
38+
### VS Code ###
39+
.vscode/
40+
41+
### Mac OS ###
42+
.DS_Store

.idea/.gitignore

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/encodings.xml

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/gradle.xml

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/uiDesigner.xml

Lines changed: 124 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build.gradle

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
plugins {
2+
id 'java'
3+
4+
id 'java-library'
5+
id 'maven-publish'
6+
}
7+
compileJava {options.encoding = "UTF-8"}
8+
compileTestJava {options.encoding = "UTF-8"}
9+
10+
group = 'com.github.mohammadrezaeicode'
11+
version = '0.1-SNAPSHOT'
12+
13+
tasks.withType(JavaCompile) {
14+
options.encoding = 'UTF-8'
15+
}
16+
17+
repositories {
18+
mavenCentral()
19+
}
20+
21+
dependencies {
22+
testImplementation platform('org.junit:junit-bom:5.9.1')
23+
testImplementation 'org.junit.jupiter:junit-jupiter'
24+
testImplementation 'org.junit.jupiter:junit-jupiter:5.8.1'
25+
testImplementation 'org.junit.jupiter:junit-jupiter:5.8.1'
26+
compileOnly 'org.projectlombok:lombok:1.18.36'
27+
annotationProcessor 'org.projectlombok:lombok:1.18.36'
28+
}
29+
30+
publishing {
31+
publications {
32+
mavenJava(MavenPublication) {
33+
artifactId = "excel"
34+
from components.java
35+
versionMapping {
36+
usage('java-api') {
37+
fromResolutionOf('runtimeClasspath')
38+
}
39+
usage('java-runtime') {
40+
fromResolutionResult()
41+
}
42+
}
43+
pom {
44+
name = 'MR Excel'
45+
description = ''
46+
url = 'https://github.com/mohammadrezaeicode/mr-excel-java'
47+
// properties = [
48+
// myProp: "value",
49+
// "prop.with.dots": "anotherValue"
50+
// ]
51+
licenses {
52+
license {
53+
name = 'The Apache License, Version 2.0'
54+
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
55+
}
56+
}
57+
developers {
58+
developer {
59+
id = 'johnd'
60+
name = 'John Doe'
61+
email = 'john.doe@example.com'
62+
}
63+
}
64+
scm {
65+
connection = 'scm:git:git://github.com/mohammadrezaeicode/mr-excel-java.git'
66+
developerConnection = 'scm:git:ssh://github.com:mohammadrezaeicode/mr-excel-java.git'
67+
url = 'https://github.com/mohammadrezaeicode/mr-excel-java'
68+
}
69+
// repositories {
70+
// maven {
71+
// def releasesRepoUrl = layout.buildDirectory.dir('repos/releases')
72+
// def snapshotsRepoUrl = layout.buildDirectory.dir('repos/snapshots')
73+
// url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
74+
// }
75+
// }
76+
}
77+
}
78+
}
79+
}
80+
81+
test {
82+
useJUnitPlatform()
83+
}
84+
85+
java {
86+
toolchain {
87+
languageVersion = JavaLanguageVersion.of(11)
88+
}
89+
withJavadocJar()
90+
withSourcesJar()
91+
92+
}
93+
94+
95+
//signing {
96+
// sign publishing.publications.mavenJava
97+
//}
98+
//
99+
//
100+
//javadoc {
101+
// if(JavaVersion.current().isJava9Compatible()) {
102+
// options.addBooleanOption('html5', true)
103+
// }
104+
//}

gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
org.gradle.jvmargs=-Dfile.encoding=UTF-8

0 commit comments

Comments
 (0)