Skip to content

Commit 86177c9

Browse files
committed
add dependabot and founding
1 parent c795349 commit 86177c9

4 files changed

Lines changed: 230 additions & 0 deletions

File tree

.github/FUNDING.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# These are supported funding model platforms
2+
3+
github: [rbri] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4+
patreon: # Replace with a single Patreon username
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: # Replace with a single Ko-fi username
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
otechie: # Replace with a single Otechie username
12+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "maven"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"
7+
ignore:
8+
# ignore because it does not work with java 8
9+
- dependency-name: "org.apache.maven.plugins:maven-site-plugin"
10+
- dependency-name: "com.puppycrawl.tools:checkstyle"
11+
versions: ["10.*"]
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
name: "CodeQL"
7+
8+
on:
9+
push:
10+
branches: [master]
11+
pull_request:
12+
# The branches below must be a subset of the branches above
13+
branches: [master]
14+
schedule:
15+
- cron: '0 1 * * 3'
16+
17+
jobs:
18+
analyze:
19+
name: Analyze
20+
runs-on: ubuntu-latest
21+
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
# Override automatic language detection by changing the below list
26+
# Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
27+
language: ['java']
28+
# Learn more...
29+
# https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection
30+
31+
steps:
32+
- name: Checkout repository
33+
uses: actions/checkout@v2
34+
with:
35+
# We must fetch at least the immediate parents so that if this is
36+
# a pull request then we can checkout the head.
37+
fetch-depth: 2
38+
39+
# If this run was triggered by a pull request event, then checkout
40+
# the head of the pull request instead of the merge commit.
41+
- run: git checkout HEAD^2
42+
if: ${{ github.event_name == 'pull_request' }}
43+
44+
# Initializes the CodeQL tools for scanning.
45+
- name: Initialize CodeQL
46+
uses: github/codeql-action/init@v2
47+
with:
48+
languages: ${{ matrix.language }}
49+
# If you wish to specify custom queries, you can do so here or in a config file.
50+
# By default, queries listed here will override any specified in a config file.
51+
# Prefix the list here with "+" to use these queries and those in the config file.
52+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
53+
54+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
55+
# If this step fails, then you should remove it and run the build manually (see below)
56+
- name: Autobuild
57+
uses: github/codeql-action/autobuild@v2
58+
59+
# ℹ️ Command-line programs to run using the OS shell.
60+
# 📚 https://git.io/JvXDl
61+
62+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
63+
# and modify them (or add more) to build your code if your project
64+
# uses a compiled language
65+
66+
#- run: |
67+
# make bootstrap
68+
# make release
69+
70+
- name: Perform CodeQL Analysis
71+
uses: github/codeql-action/analyze@v2

README.mdx

Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
# HtmlUnit - CSSParser
2+
3+
This is the code repository of the CSS parser used by HtmlUnit starting with version 1.30.
4+
5+
For a long time HtmlUnit uses the CSSParser (http://cssparser.sourceforge.net/). But as HtmlUnit has to support more
6+
and more css related features a solution was required that offer more flexibility regarding the resulting object model.
7+
This implementation starts based on CSSParser 0.9.25; we removed the sac dependency and did some cleanup.
8+
9+
We will try to stay in sync with CSSParser regarding the features in the future.
10+
11+
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/net.sourceforge.htmlunit/htmlunit-cssparser/badge.svg)](https://maven-badges.herokuapp.com/maven-central/net.sourceforge.htmlunit/htmlunit-cssparser)
12+
13+
:heart: [Sponsor](https://github.com/sponsors/rbri)
14+
15+
### Project News
16+
[HtmlUnit@Twitter][3]
17+
18+
### Latest release Version 3.6.0 / October 3, 2023
19+
20+
For maven, you would add:
21+
22+
<dependency>
23+
<groupId>org.htmlunit</groupId>
24+
<artifactId>htmlunit-cssparser</artifactId>
25+
<version>3.6.0</version>
26+
</dependency>
27+
28+
### Latst CI build
29+
The latest builds are available from our
30+
[Jenkins CI build server][2]
31+
32+
[![Build Status](https://jenkins.wetator.org/buildStatus/icon?job=HtmlUnit+-+CSS+Parser)](https://jenkins.wetator.org/job/HtmlUnit%20-%20CSS%20Parser/)
33+
34+
If you use maven please add:
35+
36+
<dependency>
37+
<groupId>org.htmlunit</groupId>
38+
<artifactId>htmlunit-cssparser</artifactId>
39+
<version>3.7.0-SNAPSHOT</version>
40+
</dependency>
41+
42+
You have to add the sonatype snapshot repository to your pom `repositories` section also:
43+
44+
<repository>
45+
<id>OSS Sonatype snapshots</id>
46+
<url>https://s01.oss.sonatype.org/content/repositories/snapshots/</url>
47+
<snapshots>
48+
<enabled>true</enabled>
49+
<updatePolicy>always</updatePolicy>
50+
</snapshots>
51+
<releases>
52+
<enabled>false</enabled>
53+
</releases>
54+
</repository>
55+
56+
57+
## Start HtmlUnit - CSSParser Development
58+
59+
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
60+
61+
### Prerequisites
62+
63+
You simply only need a local maven installation.
64+
65+
66+
### Building
67+
68+
Create a local clone of the repository and you are ready to start.
69+
70+
Open a command line window from the root folder of the project and call
71+
72+
```
73+
mvn compile
74+
```
75+
76+
### Running the tests
77+
78+
```
79+
mvn test
80+
```
81+
82+
## Contributing
83+
84+
Pull Requests and and all other Community Contributions are essential for open source software.
85+
Every contribution - from bug reports to feature requests, typos to full new features - are greatly appreciated.
86+
87+
## Deployment and Versioning
88+
89+
This part is intended for committer who are packaging a release.
90+
91+
* Check all your files are checked in
92+
* Execute "mvn -U clean test" to be sure all tests are passing
93+
* Update the version number in pom.xml and README.md
94+
* Commit the changes
95+
96+
97+
* Build and deploy the artifacts
98+
99+
```
100+
mvn -up clean deploy
101+
```
102+
103+
* Go to [Sonatype staging repositories](https://s01.oss.sonatype.org/index.html#stagingRepositories) and process the deploy
104+
- select the repository and close it - wait until the close is processed
105+
- release the package and wait until it is processed
106+
107+
* Create the version on Github
108+
* login to Github and open project https://github.com/HtmlUnit/htmlunit-cssparser
109+
* click Releases > Draft new release
110+
* fill the tag and title field with the release number (e.g. 3.0.0)
111+
* append
112+
* htmlunit-cssparser-3.x.x.jar
113+
* htmlunit-cssparser-3.x.x.jar.asc
114+
* htmlunit-cssparser-3.x.x-javadoc.jar
115+
* htmlunit-cssparser-3.x.x-javadoc.jar.asc
116+
* and publish the release
117+
118+
* Update the version number in pom.xml to start next snapshot development
119+
* Update the htmlunit pom to use the new release
120+
121+
## Authors
122+
123+
* **RBRi**
124+
* all the contributors to CSSParser
125+
126+
## License
127+
128+
This project is licensed under the Apache 2.0 License
129+
130+
## Acknowledgments
131+
132+
Many thanks to all of you contributing to HtmlUnit/CSSParser/Rhino in the past.
133+
134+
135+
[2]: https://jenkins.wetator.org/job/HtmlUnit%20-%20CSS%20Parser/ "HtmlUnit - CSS Parser CI"
136+
[3]: https://twitter.com/HtmlUnit "https://twitter.com/HtmlUnit"

0 commit comments

Comments
 (0)