Skip to content

Commit 6cdf135

Browse files
add: first version 1.0
1 parent bf0ad2c commit 6cdf135

File tree

13 files changed

+639
-0
lines changed

13 files changed

+639
-0
lines changed

.github/workflows/java-ci.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Java CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build-and-run-unit-test:
7+
runs-on: ubuntu-latest
8+
steps:
9+
# Pull the code from the repository.
10+
- name: Pull the code from the repository
11+
uses: actions/checkout@v3
12+
# Build the project with Maven.
13+
- name: Install Java and Maven
14+
uses: actions/setup-java@v3
15+
with:
16+
java-version: '17'
17+
distribution: 'adopt'
18+
- name: Compilation with Maven and Unit test
19+
run: mvn package && mvn test

.github/workflows/release.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Publish release and package
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions: write-all
9+
10+
jobs:
11+
release:
12+
runs-on: ubuntu-latest
13+
steps:
14+
# Pull the code from the repository.
15+
- name: Pull the code from the repository
16+
uses: actions/checkout@v3
17+
# Build the project with Maven.
18+
- name: Install Java and Maven
19+
uses: actions/setup-java@v3
20+
with:
21+
java-version: '17'
22+
distribution: 'adopt'
23+
- name: Compilation with Maven and Unit test
24+
run: mvn package && mvn test
25+
############################################
26+
# 1. Create a release on GitHub
27+
############################################
28+
# Get the project version from pom.xml.
29+
- name: Get Project Version from pom.xml
30+
id: pomVersion
31+
uses: entimaniac/[email protected]
32+
# Create a release.
33+
- name: Create Release
34+
uses: actions/[email protected]
35+
env:
36+
# This token is provided by Actions, you do not need to create your own token.
37+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
with:
39+
tag_name: v${{ steps.pomVersion.outputs.version }}
40+
release_name: Version ${{ steps.pomVersion.outputs.version }}
41+
body_path: CHANGELOG.md
42+
draft: false
43+
prerelease: false
44+
############################################
45+
# 1. Create a package on GitHub
46+
############################################
47+
# STEP 2: Publish to GitHub Packages
48+
- name: Publish to GitHub Packages
49+
run: mvn --batch-mode deploy
50+
env:
51+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

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

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Feature:
2+
- First version with solving of RECAPTCHA_V2 only.

pom.xml

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
5+
<groupId>net.botlify.anticaptchacom-api</groupId>
6+
<artifactId>anticaptchacom-api</artifactId>
7+
<version>1.0</version>
8+
9+
<name>Anti-Captcha.com API</name>
10+
<url>https//github.com/botlify-net/anticaptchacom-api</url>
11+
<build>
12+
<plugins>
13+
<plugin>
14+
<groupId>org.apache.maven.plugins</groupId>
15+
<artifactId>maven-compiler-plugin</artifactId>
16+
<configuration>
17+
<source>8</source>
18+
<target>8</target>
19+
</configuration>
20+
</plugin>
21+
</plugins>
22+
</build>
23+
<description>An interface to communicate simpler with anti-captcha.com</description>
24+
25+
<organization>
26+
<name>Botlify</name>
27+
<url>https://github.com/botlify-io</url>
28+
</organization>
29+
30+
<licenses>
31+
<license>
32+
<name>Apache License, Version 2.0</name>
33+
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
34+
<distribution>repo</distribution>
35+
</license>
36+
</licenses>
37+
38+
<developers>
39+
<developer>
40+
<organization>Botlify</organization>
41+
<url>https://github.com/botlify-net</url>
42+
<timezone>Europe/Paris</timezone>
43+
</developer>
44+
</developers>
45+
46+
<scm>
47+
<connection>scm:github:https://github.com/botlify-net/anticaptchacom-api</connection>
48+
<developerConnection>scm:github:https://github.com/botlify-net/anticaptchacom-api</developerConnection>
49+
<url>https://github.com/botlify-net/anticaptchacom-api</url>
50+
<tag>master</tag>
51+
</scm>
52+
53+
54+
<dependencies>
55+
<dependency>
56+
<groupId>org.projectlombok</groupId>
57+
<artifactId>lombok</artifactId>
58+
<version>1.18.26</version>
59+
<scope>compile</scope>
60+
</dependency>
61+
<dependency>
62+
<groupId>com.squareup.okhttp3</groupId>
63+
<artifactId>okhttp</artifactId>
64+
<version>5.0.0-alpha.11</version>
65+
</dependency>
66+
<dependency>
67+
<groupId>org.apache.logging.log4j</groupId>
68+
<artifactId>log4j-core</artifactId>
69+
<version>2.20.0</version>
70+
</dependency>
71+
<dependency>
72+
<groupId>org.apache.logging.log4j</groupId>
73+
<artifactId>log4j-api</artifactId>
74+
<version>2.20.0</version>
75+
</dependency>
76+
<dependency>
77+
<groupId>org.jetbrains</groupId>
78+
<artifactId>annotations</artifactId>
79+
<version>24.0.1</version>
80+
</dependency>
81+
<dependency>
82+
<groupId>org.json</groupId>
83+
<artifactId>json</artifactId>
84+
<version>20230227</version>
85+
</dependency>
86+
<dependency>
87+
<groupId>org.junit.jupiter</groupId>
88+
<artifactId>junit-jupiter-engine</artifactId>
89+
<version>5.9.2</version>
90+
<scope>test</scope>
91+
</dependency>
92+
<dependency>
93+
<groupId>com.google.guava</groupId>
94+
<artifactId>guava</artifactId>
95+
<version>31.1-jre</version>
96+
</dependency>
97+
</dependencies>
98+
99+
100+
<properties>
101+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
102+
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
103+
</properties>
104+
105+
</project>

0 commit comments

Comments
 (0)