Skip to content
This repository was archived by the owner on Mar 15, 2021. It is now read-only.

Commit bf0b74f

Browse files
committed
#3 #5 upgrade maven dependencies and libraries, use JDK6, update changelog for 2.0.0
1 parent 31cf9f4 commit bf0b74f

File tree

6 files changed

+43
-46
lines changed

6 files changed

+43
-46
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# LessCSS Compiler Changelog
22

3+
## 2.0.0
4+
Features:
5+
* Added support for `HTTP`, `HTTPS`, `FTP` and `classpath` protocols
6+
* Added support for Source maps
7+
8+
[See documentation](http://lesscss-compiler.projects.gabrys.biz/2.0.0/)
9+
310
## 1.2.2
411
Bugs:
512
* Fixed support for `data-uri` function

README.md

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,22 @@
11
# About
22
[![License BSD 3-Clause](https://img.shields.io/badge/license-BSD%203--Clause-blue.svg)](http://lesscss-compiler.projects.gabrys.biz/license.txt)
3-
[![Build Status](https://travis-ci.org/gabrysbiz/lesscss-compiler.svg?branch=develop)](https://travis-ci.org/gabrysbiz/lesscss-compiler)
3+
[![Build Status](https://travis-ci.org/gabrysbiz/lesscss-compiler.svg?branch=feature%2F2.0)](https://travis-ci.org/gabrysbiz/lesscss-compiler)
44

5-
The LessCSS Compiler is a Java library which compiles [Less](http://lesscss.org/) source files to the [CSS](http://www.w3.org/Style/CSS/) code.
5+
The LessCSS Compiler is a Java library which compiles [Less](http://lesscss.org/) source files to [CSS](http://www.w3.org/Style/CSS/) code.
66

77
From [Less](http://lesscss.org/) website:
88
> Less is a CSS pre-processor, meaning that it extends the CSS language, adding features that allow variables,
99
> mixins, functions and many other techniques that allow you to make CSS that is more maintainable, themable
1010
> and extendable.
1111
1212
# Compatibility
13-
The compiler is compatible with version [1.7.5](https://github.com/less/less.js/releases/tag/v1.7.5).
13+
The compiler is compatible with version [1.7.5](https://github.com/less/less.js/releases/tag/v1.7.5).
1414
The library is based on the official [Less](http://lesscss.org/) JavaScript compiler adapted to the
1515
[Rhino](https://developer.mozilla.org/en-US/docs/Mozilla/Projects/Rhino) engine.
1616

17-
Restrictions:
18-
* cannot fetch sources from Internet, e.g. `@import (less) "http://example.org/style.less"`
19-
2017
# Requirements
2118
The compiler to run requires:
22-
* Java 5.0 or higher
19+
* Java 6.0 or higher
2320
* Third-Party Dependencies ([see list](http://lesscss-compiler.projects.gabrys.biz/LATEST/dependencies.html))
2421

2522
# Download
@@ -33,14 +30,5 @@ library by [Marcel Overdijk](https://github.com/marceloverdijk).
3330
# Usage
3431
How to compile a source file:
3532
```
36-
// create compiler & source file
37-
LessCompiler compiler = new LessCompilerImpl();
38-
File source = new File("/less/file.less");
39-
40-
// compile file with default options
41-
String cssCode = compiler.compile(source);
42-
43-
// set custom option: minify CSS code
44-
CompilerOptions options = new CompilerOptionsBuilder().setMinified(true).create();
45-
String cssMinifiedCode = compiler.compile(source, options);
33+
// TODO
4634
```

pom.xml

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55

66
<groupId>biz.gabrys.lesscss</groupId>
77
<artifactId>compiler</artifactId>
8-
<version>1.2.3-SNAPSHOT</version>
8+
<version>2.0.0-SNAPSHOT</version>
99
<name>LessCSS Compiler</name>
10-
<description>A Java library which compiles Less source files to the CSS code.</description>
10+
<description>A Java library which compiles Less source files to CSS code.</description>
1111
<url>http://lesscss-compiler.projects.gabrys.biz/LATEST/</url>
1212

1313
<inceptionYear>2015</inceptionYear>
@@ -76,8 +76,7 @@
7676
<dependency>
7777
<groupId>org.mozilla</groupId>
7878
<artifactId>rhino</artifactId>
79-
<!-- latest compatible with JDK 1.5 -->
80-
<version>1.7R5</version>
79+
<version>1.7.7.1</version>
8180
</dependency>
8281

8382
<dependency>
@@ -86,10 +85,17 @@
8685
<version>4.12</version>
8786
<scope>test</scope>
8887
</dependency>
88+
<dependency>
89+
<groupId>org.assertj</groupId>
90+
<artifactId>assertj-core</artifactId>
91+
<!-- latest compatible with JDK 1.6 -->
92+
<version>1.7.1</version>
93+
<scope>test</scope>
94+
</dependency>
8995
<dependency>
9096
<groupId>org.mockito</groupId>
9197
<artifactId>mockito-core</artifactId>
92-
<version>1.10.19</version>
98+
<version>2.7.2</version>
9399
<scope>test</scope>
94100
</dependency>
95101
</dependencies>
@@ -107,7 +113,7 @@
107113
</plugin>
108114
<plugin>
109115
<artifactId>maven-compiler-plugin</artifactId>
110-
<version>3.6.0</version>
116+
<version>3.6.1</version>
111117
</plugin>
112118
<plugin>
113119
<artifactId>maven-deploy-plugin</artifactId>
@@ -139,11 +145,11 @@
139145
</plugin>
140146
<plugin>
141147
<artifactId>maven-resources-plugin</artifactId>
142-
<version>3.0.1</version>
148+
<version>3.0.2</version>
143149
</plugin>
144150
<plugin>
145151
<artifactId>maven-site-plugin</artifactId>
146-
<version>3.5.1</version>
152+
<version>3.6</version>
147153
</plugin>
148154
<plugin>
149155
<artifactId>maven-source-plugin</artifactId>
@@ -173,7 +179,7 @@
173179
<plugin>
174180
<groupId>org.jacoco</groupId>
175181
<artifactId>jacoco-maven-plugin</artifactId>
176-
<version>0.7.7.201606060606</version>
182+
<version>0.7.8</version>
177183
<configuration>
178184
<rules>
179185
<rule>
@@ -191,8 +197,8 @@
191197
<plugin>
192198
<artifactId>maven-compiler-plugin</artifactId>
193199
<configuration>
194-
<source>1.5</source>
195-
<target>1.5</target>
200+
<source>1.6</source>
201+
<target>1.6</target>
196202
<showDeprecation>true</showDeprecation>
197203
<showWarnings>true</showWarnings>
198204
</configuration>

src/site/site.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<skin>
1111
<groupId>org.apache.maven.skins</groupId>
1212
<artifactId>maven-fluido-skin</artifactId>
13-
<version>1.5</version>
13+
<version>1.6</version>
1414
</skin>
1515
<custom>
1616
<fluidoSkin>

xdocs/changelog.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,19 @@
77
</properties>
88

99
<body>
10+
<section id="release-2.0.0" name="Release 2.0.0">
11+
<p>Features:</p>
12+
<ul>
13+
<li>Added support for <code>HTTP</code>, <code>HTTPS</code>, <code>FTP</code> and <code>classpath</code> protocols</li>
14+
<li>Added support for Source maps</li>
15+
</ul>
16+
</section>
1017
<section id="release-1.2.2" name="Release 1.2.2">
1118
<p>Bugs:</p>
1219
<ul>
1320
<li>Fixed support for <code>data-uri</code> function</li>
1421
</ul>
22+
<p><a href="http://lesscss-compiler.projects.gabrys.biz/1.2.2/">See documentation</a></p>
1523
</section>
1624
<section id="release-1.2.1" name="Release 1.2.1">
1725
<p>Bugs:</p>

xdocs/index.xml.vm

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<body>
1010
<section name="About">
1111
<p>
12-
The ${project.name} is a Java library which compiles <a href="http://lesscss.org/">Less</a> source files to the
12+
The ${project.name} is a Java library which compiles <a href="http://lesscss.org/">Less</a> source files to
1313
<a href="http://www.w3.org/Style/CSS/">CSS</a> code.
1414
</p>
1515
<p>
@@ -21,21 +21,17 @@
2121
</section>
2222
<section name="Compatibility">
2323
<p>
24-
The compiler is compatible with version <a href="https://github.com/less/less.js/releases/tag/v1.7.5">1.7.5</a>.
24+
The compiler is compatible with version <a href="https://github.com/less/less.js/releases/tag/v1.7.5">1.7.5</a>.
2525
The library is based on the official <a href="http://lesscss.org/">Less</a> JavaScript compiler adapted to the
2626
<a href="https://developer.mozilla.org/en-US/docs/Mozilla/Projects/Rhino">Rhino</a> engine.
2727
</p>
28-
<p>Restrictions:</p>
29-
<ul>
30-
<li>cannot fetch sources from Internet, e.g. <code>@import (less) "http://example.org/style.less"</code></li>
31-
</ul>
3228
</section>
3329
<section name="Requirements">
3430
<p>
3531
The compiler to run requires:
3632
</p>
3733
<ul>
38-
<li>Java 5.0 or higher</li>
34+
<li>Java 6.0 or higher</li>
3935
<li>Third-Party Dependencies (<a href="dependencies.html">see list</a>)</li>
4036
</ul>
4137
</section>
@@ -56,16 +52,8 @@
5652
<p>
5753
How to compile a source file:
5854
</p>
59-
<pre>// create compiler &amp; source file
60-
LessCompiler compiler = new LessCompilerImpl();
61-
File source = new File("/less/file.less");
62-
63-
// compile file with default options
64-
String cssCode = compiler.compile(source);
65-
66-
// set custom option: minify CSS code
67-
CompilerOptions options = new CompilerOptionsBuilder().setMinified(true).create();
68-
String cssMinifiedCode = compiler.compile(source, options);</pre>
55+
<pre>//TODO
56+
</pre>
6957
</section>
7058
</body>
7159
</document>

0 commit comments

Comments
 (0)